MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / sql_context

Function sql_context

tests/test_sql.py:13–18  ·  view source on GitHub ↗

Fixture providing database connection, dialect and psycopg flag.

(db)

Source from the content-addressed store, hash-verified

11
12@pytest.fixture
13def sql_context(db):
14 """Fixture providing database connection, dialect and psycopg flag."""
15 db_conn = connections.get("models")
16 dialect = db_conn.schema_generator.DIALECT
17 is_psycopg = isinstance(db_conn, PsycopgClient)
18 return db_conn, dialect, is_psycopg
19
20
21def test_filter(sql_context):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…