summaryrefslogtreecommitdiff
path: root/tests/constraints
diff options
context:
space:
mode:
authorIan Foote <ian@feete.org>2018-09-25 16:14:45 +0100
committerTim Graham <timograham@gmail.com>2018-09-25 11:14:45 -0400
commit9a0e0d966a1a317b1b422b5e92949e6d1f33fc2f (patch)
treecf255e4bc895f7928ea77a35d292e40f020b0931 /tests/constraints
parent747db4018bc83f91a20a4d615c2a1b812f707480 (diff)
downloaddjango-9a0e0d966a1a317b1b422b5e92949e6d1f33fc2f.tar.gz
Refs #11964 -- Renamed a database check constraint test.
Diffstat (limited to 'tests/constraints')
-rw-r--r--tests/constraints/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/constraints/tests.py b/tests/constraints/tests.py
index 19573dffa1..908f0aaf38 100644
--- a/tests/constraints/tests.py
+++ b/tests/constraints/tests.py
@@ -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)