MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_commit_inactive

Method test_commit_inactive

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

Source from the content-addressed store, hash-verified

743
744 @testing.requires.independent_connections
745 def test_commit_inactive(self):
746 with testing.db.connect() as conn:
747 conn.begin()
748 conn.invalidate()
749
750 assert_raises_message(
751 exc.InvalidRequestError, "Can't reconnect until", conn.commit
752 )
753
754 @testing.requires.independent_connections
755 def test_rollback_inactive(self):

Callers

nothing calls this directly

Calls 4

assert_raises_messageFunction · 0.90
connectMethod · 0.45
beginMethod · 0.45
invalidateMethod · 0.45

Tested by

no test coverage detected