MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_is_asyncio_from_dialect

Method test_is_asyncio_from_dialect

test/engine/test_pool.py:314–324  ·  view source on GitHub ↗
(self, pool_cls, is_async_kind)

Source from the content-addressed store, hash-verified

312 (pool.AssertionPool, None),
313 )
314 def test_is_asyncio_from_dialect(self, pool_cls, is_async_kind):
315 p = pool_cls(creator=object())
316 for is_async in (True, False):
317 if is_async:
318 p._dialect = _AsyncConnDialect()
319 else:
320 p._dialect = _ConnDialect()
321 if is_async_kind is None:
322 eq_(p._is_asyncio, is_async)
323 else:
324 eq_(p._is_asyncio, is_async_kind)
325
326 @testing.combinations(
327 (pool.QueuePool, False),

Callers

nothing calls this directly

Calls 3

_AsyncConnDialectClass · 0.90
_ConnDialectClass · 0.90
eq_Function · 0.90

Tested by

no test coverage detected