MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / async_test_exec_options

Function async_test_exec_options

test/typing/plain_files/orm/session.py:185–200  ·  view source on GitHub ↗

test #10182

()

Source from the content-addressed store, hash-verified

183
184
185async def async_test_exec_options() -> None:
186 """test #10182"""
187
188 session = AsyncSession()
189
190 await session.connection(
191 execution_options={"isolation_level": "REPEATABLE READ"}
192 )
193
194 scoped = async_scoped_session(
195 async_sessionmaker(), scopefunc=asyncio.current_task
196 )
197
198 await scoped.connection(
199 execution_options={"isolation_level": "REPEATABLE READ"}
200 )
201
202
203def test_13091() -> None:

Callers

nothing calls this directly

Calls 5

connectionMethod · 0.95
AsyncSessionClass · 0.90
async_sessionmakerClass · 0.90
connectionMethod · 0.45

Tested by

no test coverage detected