diff --git a/tests/invalid_models_tests/test_models.py b/tests/invalid_models_tests/test_models.py index 4d2a923a00..0df41c2952 100644 --- a/tests/invalid_models_tests/test_models.py +++ b/tests/invalid_models_tests/test_models.py @@ -1241,4 +1241,4 @@ class ConstraintsTests(TestCase): required_db_features = {'supports_table_check_constraints'} constraints = [models.CheckConstraint(check=models.Q(age__gte=18), name='is_adult')] - self.assertEqual(Model.check(), []) + self.assertEqual(Model.check(databases=self.databases), [])