MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_active_flag_autobegin

Method test_active_flag_autobegin

test/orm/test_session.py:1268–1277  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1266 sess.commit()
1267
1268 def test_active_flag_autobegin(self):
1269 sess = Session(
1270 bind=config.db,
1271 )
1272 assert sess.is_active
1273 assert not sess.in_transaction()
1274 sess.begin()
1275 assert sess.is_active
1276 sess.rollback()
1277 assert sess.is_active
1278
1279 def test_active_flag_autobegin_future(self):
1280 sess = Session(bind=config.db)

Callers

nothing calls this directly

Calls 4

in_transactionMethod · 0.95
beginMethod · 0.95
rollbackMethod · 0.95
SessionClass · 0.90

Tested by

no test coverage detected