MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_exec_options

Function test_exec_options

test/typing/plain_files/orm/session.py:171–182  ·  test/typing/plain_files/orm/session.py::test_exec_options

test #10182

()

Source from the content-addressed store, hash-verified

169
170
171def test_exec_options() -> None:
172 class="st">""class="st">"test class="cm">#10182"class="st">""
173
174 session = Session()
175
176 session.connection(
177 execution_options={class="st">"isolation_level": class="st">"REPEATABLE READ"}
178 )
179
180 scoped = scoped_session(sessionmaker())
181
182 scoped.connection(execution_options={class="st">"isolation_level": class="st">"REPEATABLE READ"})
183
184
185async def async_test_exec_options() -> None:

Callers

nothing calls this directly

Calls 5

connectionMethod · 0.95
SessionClass · 0.90
scoped_sessionClass · 0.90
sessionmakerClass · 0.90
connectionMethod · 0.45

Tested by

no test coverage detected