diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-03-24 12:18:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-24 12:18:00 +0100 |
| commit | 83443e62d385e2fc25b176056542c0989feb7732 (patch) | |
| tree | 40a23576a6325c47b4de0e2ee0a91f09880ff9bc /tests | |
| parent | 94463aa861208b11382c7904272d3529372d6b24 (diff) | |
Optimized FkConstraintsTests.test_check_constraints by specifying a database table.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/backends/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/backends/tests.py b/tests/backends/tests.py index dd537d1ea3..d335aaefbc 100644 --- a/tests/backends/tests.py +++ b/tests/backends/tests.py @@ -622,7 +622,7 @@ class FkConstraintsTests(TransactionTestCase): with connection.constraint_checks_disabled(): a.save() with self.assertRaises(IntegrityError): - connection.check_constraints() + connection.check_constraints(table_names=[Article._meta.db_table]) transaction.set_rollback(True) def test_check_constraints_sql_keywords(self): |
