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