MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / test_get_dialect

Method test_get_dialect

test/dialect/postgresql/test_dialect.py:1619–1628  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1617 eq_(conn.scalar(s), {"key": "value", "x": "q"})
1618
1619 def test_get_dialect(self):
1620 u = url.URL.create("postgresql://")
1621 d = psycopg_dialect.PGDialect_psycopg.get_dialect_cls(u)
1622 is_(d, psycopg_dialect.PGDialect_psycopg)
1623 d = psycopg_dialect.PGDialect_psycopg.get_async_dialect_cls(u)
1624 is_(d, psycopg_dialect.PGDialectAsync_psycopg)
1625 d = psycopg_dialect.PGDialectAsync_psycopg.get_dialect_cls(u)
1626 is_(d, psycopg_dialect.PGDialectAsync_psycopg)
1627 d = psycopg_dialect.PGDialectAsync_psycopg.get_dialect_cls(u)
1628 is_(d, psycopg_dialect.PGDialectAsync_psycopg)
1629
1630 def test_async_version(self):
1631 e = create_engine("postgresql+psycopg_async://")

Callers

nothing calls this directly

Calls 4

is_Function · 0.90
createMethod · 0.45
get_dialect_clsMethod · 0.45
get_async_dialect_clsMethod · 0.45

Tested by

no test coverage detected