MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / commit

Function commit

test/engine/test_reconnect.py:112–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110 return
111
112 def commit():
113 if conn.explode == "commit":
114 raise MockDisconnect("Lost the DB connection on commit")
115 elif conn.explode == "commit_no_disconnect":
116 raise MockError(
117 "something broke on commit but we didn't lose the "
118 "connection"
119 )
120 else:
121 return
122
123 conn = Mock(
124 rollback=Mock(side_effect=rollback),

Callers

nothing calls this directly

Calls 2

MockDisconnectClass · 0.85
MockErrorClass · 0.85

Tested by

no test coverage detected