()
| 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), |
nothing calls this directly
no test coverage detected