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

Function commit

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

MockDisconnectClass · 0.85
MockErrorClass · 0.85

Tested by

no test coverage detected