MCPcopy
hub / github.com/pandas-dev/pandas / test_query_by_select_obj

Function test_query_by_select_obj

pandas/tests/io/test_sql.py:2577–2589  ·  view source on GitHub ↗
(conn, request)

Source from the content-addressed store, hash-verified

2575
2576@pytest.mark.parametrize("conn", sqlalchemy_connectable_iris)
2577def test_query_by_select_obj(conn, request):
2578 conn = request.getfixturevalue(conn)
2579 # WIP : GH10846
2580 from sqlalchemy import (
2581 bindparam,
2582 select,
2583 )
2584
2585 iris = iris_table_metadata()
2586 name_select = select(iris).where(iris.c.Name == bindparam("name"))
2587 iris_df = sql.read_sql(name_select, conn, params={"name": "Iris-setosa"})
2588 all_names = set(iris_df["Name"])
2589 assert all_names == {"Iris-setosa"}
2590
2591
2592@pytest.mark.parametrize("conn", all_connectable)

Callers

nothing calls this directly

Calls 2

iris_table_metadataFunction · 0.85
whereMethod · 0.45

Tested by

no test coverage detected