MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_isolation_level

Method test_isolation_level

test/ext/asyncio/test_engine.py:541–553  ·  view source on GitHub ↗
(self, async_connection)

Source from the content-addressed store, hash-verified

539
540 @async_test
541 async def test_isolation_level(self, async_connection):
542 conn = async_connection
543 sync_isolation_level = await greenlet_spawn(
544 conn.sync_connection.get_isolation_level
545 )
546 isolation_level = await conn.get_isolation_level()
547
548 eq_(isolation_level, sync_isolation_level)
549
550 await conn.execution_options(isolation_level="SERIALIZABLE")
551 isolation_level = await conn.get_isolation_level()
552
553 eq_(isolation_level, "SERIALIZABLE")
554
555 @testing.combinations(
556 (

Callers

nothing calls this directly

Calls 4

greenlet_spawnFunction · 0.90
eq_Function · 0.90
get_isolation_levelMethod · 0.45
execution_optionsMethod · 0.45

Tested by

no test coverage detected