mirror of
https://github.com/django/django.git
synced 2025-03-13 02:40:47 +00:00
Corrected test case in ExclusionConstraintTests.test_invalid_expressions().
This commit is contained in:
parent
bad1a18ff2
commit
647dca4132
@ -309,7 +309,7 @@ class ExclusionConstraintTests(PostgreSQLTestCase):
|
|||||||
|
|
||||||
def test_invalid_expressions(self):
|
def test_invalid_expressions(self):
|
||||||
msg = "The expressions must be a list of 2-tuples."
|
msg = "The expressions must be a list of 2-tuples."
|
||||||
for expressions in (["foo"], ["foo"], [("foo_1", "foo_2", "foo_3")]):
|
for expressions in (["foo"], [("foo",)], [("foo_1", "foo_2", "foo_3")]):
|
||||||
with self.subTest(expressions), self.assertRaisesMessage(ValueError, msg):
|
with self.subTest(expressions), self.assertRaisesMessage(ValueError, msg):
|
||||||
ExclusionConstraint(
|
ExclusionConstraint(
|
||||||
index_type="GIST",
|
index_type="GIST",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user