MCPcopy Index your code
hub / github.com/dbcli/pgcli / connection

Function connection

tests/conftest.py:25–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24@pytest.fixture(scope="function")
25def connection():
26 create_db("_test_db")
27 connection = db_connection("_test_db")
28 yield connection
29
30 drop_tables(connection)
31 connection.close()
32
33
34@pytest.fixture

Callers

nothing calls this directly

Calls 3

create_dbFunction · 0.90
db_connectionFunction · 0.90
drop_tablesFunction · 0.90

Tested by

no test coverage detected