Refs #11964 -- Renamed a database check constraint test.

This commit is contained in:
Ian Foote 2018-09-25 16:14:45 +01:00 committed by Tim Graham
parent 747db4018b
commit 9a0e0d966a
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class CheckConstraintTests(TestCase):
self.assertEqual(kwargs, {'constraint': constraint, 'name': name})
@skipUnlessDBFeature('supports_table_check_constraints')
def test_model_constraint(self):
def test_database_constraint(self):
Product.objects.create(name='Valid', price=10, discounted_price=5)
with self.assertRaises(IntegrityError):
Product.objects.create(name='Invalid', price=10, discounted_price=20)