MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_get_transaction

Method test_get_transaction

test/ext/asyncio/test_engine.py:1489–1493  ·  view source on GitHub ↗
(self, async_engine)

Source from the content-addressed store, hash-verified

1487class AsyncProxyTest(EngineFixture, fixtures.TestBase):
1488 @async_test
1489 async def test_get_transaction(self, async_engine):
1490 async with async_engine.connect() as conn:
1491 async with conn.begin() as trans:
1492 is_(trans.connection, conn)
1493 is_(conn.get_transaction(), trans)
1494
1495 @async_test
1496 async def test_get_nested_transaction(self, async_engine):

Callers

nothing calls this directly

Calls 4

is_Function · 0.90
connectMethod · 0.45
beginMethod · 0.45
get_transactionMethod · 0.45

Tested by

no test coverage detected