1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

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

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)