(self, *args, **kwargs)
| 74 | call_count = [0] |
| 75 | |
| 76 | def persistent_failing_commit(self, *args, **kwargs): |
| 77 | call_count[0] += 1 |
| 78 | raise OperationalError("simulated persistent DB disconnect", params={}, orig=Exception()) |
| 79 | |
| 80 | with patch('sqlalchemy.orm.Session.commit', autospec=True, side_effect=persistent_failing_commit): |
| 81 | with pytest.raises(BackendStoreError): |
nothing calls this directly
no outgoing calls
no test coverage detected