MCPcopy
hub / github.com/django/django / _should_check_constraints

Method _should_check_constraints

django/test/testcases.py:1502–1507  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

1500 self._rollback_atomics(self.atomics)
1501
1502 def _should_check_constraints(self, connection):
1503 return (
1504 connection.features.can_defer_constraint_checks
1505 and not connection.needs_rollback
1506 and connection.is_usable()
1507 )
1508
1509 @classmethod
1510 @contextmanager

Callers 1

_fixture_teardownMethod · 0.95

Calls 1

is_usableMethod · 0.45

Tested by

no test coverage detected