mirror of https://github.com/django/django.git
Optimized FkConstraintsTests.test_check_constraints by specifying a database table.
This commit is contained in:
parent
94463aa861
commit
83443e62d3
|
@ -622,7 +622,7 @@ class FkConstraintsTests(TransactionTestCase):
|
||||||
with connection.constraint_checks_disabled():
|
with connection.constraint_checks_disabled():
|
||||||
a.save()
|
a.save()
|
||||||
with self.assertRaises(IntegrityError):
|
with self.assertRaises(IntegrityError):
|
||||||
connection.check_constraints()
|
connection.check_constraints(table_names=[Article._meta.db_table])
|
||||||
transaction.set_rollback(True)
|
transaction.set_rollback(True)
|
||||||
|
|
||||||
def test_check_constraints_sql_keywords(self):
|
def test_check_constraints_sql_keywords(self):
|
||||||
|
|
Loading…
Reference in New Issue