MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_per_engine

Method test_per_engine

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

Source from the content-addressed store, hash-verified

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