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

Method test_per_engine

test/engine/test_transaction.py:1443–1459  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1441 )
1442
1443 def test_per_engine(self):
1444 # new in 0.9
1445 eng = testing_engine(
1446 testing.db.url,
1447 options=dict(
1448 execution_options={
1449 "isolation_level": self._non_default_isolation_level()
1450 }
1451 ),
1452 )
1453 with eng.connect() as conn:
1454 eq_(
1455 eng.dialect.get_isolation_level(
1456 conn.connection.dbapi_connection
1457 ),
1458 self._non_default_isolation_level(),
1459 )
1460
1461 def test_per_option_engine(self):
1462 eng = testing_engine(testing.db.url).execution_options(

Callers

nothing calls this directly

Calls 5

testing_engineFunction · 0.90
eq_Function · 0.90
connectMethod · 0.45
get_isolation_levelMethod · 0.45

Tested by

no test coverage detected