(self)
| 1490 | cls.setUpTestData() |
| 1491 | |
| 1492 | def _fixture_teardown(self): |
| 1493 | if not self._databases_support_transactions(): |
| 1494 | return super()._fixture_teardown() |
| 1495 | try: |
| 1496 | for db_name in reversed(self._databases_names()): |
| 1497 | if self._should_check_constraints(connections[db_name]): |
| 1498 | connections[db_name].check_constraints() |
| 1499 | finally: |
| 1500 | self._rollback_atomics(self.atomics) |
| 1501 | |
| 1502 | def _should_check_constraints(self, connection): |
| 1503 | return ( |
no test coverage detected