MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_dbapi_terminate

Method test_dbapi_terminate

test/ext/asyncio/test_engine.py:420–425  ·  view source on GitHub ↗
(self, adhoc_async_engine)

Source from the content-addressed store, hash-verified

418 @async_test
419 @testing.skip_if(lambda config: not config.db.dialect.has_terminate)
420 async def test_dbapi_terminate(self, adhoc_async_engine):
421
422 conn = await adhoc_async_engine.raw_connection()
423 dbapi_conn = conn.dbapi_connection
424 dbapi_conn.terminate()
425 conn.invalidate()
426
427 @async_test
428 async def test_statement_compile(self, async_engine):

Callers

nothing calls this directly

Calls 3

raw_connectionMethod · 0.45
terminateMethod · 0.45
invalidateMethod · 0.45

Tested by

no test coverage detected