MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_get_transaction

Method test_get_transaction

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

Source from the content-addressed store, hash-verified

1558class AsyncProxyTest(EngineFixture, fixtures.TestBase):
1559 @async_test
1560 async def test_get_transaction(self, async_engine):
1561 async with async_engine.connect() as conn:
1562 async with conn.begin() as trans:
1563 is_(trans.connection, conn)
1564 is_(conn.get_transaction(), trans)
1565
1566 @async_test
1567 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