mirror of
https://github.com/django/django.git
synced 2025-01-02 22:46:15 +00:00
Refs #373 -- Fixed false failure of test_error_on_comment_pk_conflict.
The test failed with "NOT NULL constraint failed" rather than "UNIQUE constraint failed: tenant_id, comment_id".
This commit is contained in:
parent
fcd9d08379
commit
733d3998e2
@ -128,7 +128,7 @@ class CompositePKTests(TestCase):
|
||||
|
||||
def test_error_on_comment_pk_conflict(self):
|
||||
with self.assertRaises(IntegrityError):
|
||||
Comment.objects.create(tenant=self.tenant, id=self.comment.id)
|
||||
Comment.objects.create(tenant=self.tenant, id=self.comment.id, user_id=1)
|
||||
|
||||
def test_get_primary_key_columns(self):
|
||||
self.assertEqual(
|
||||
|
Loading…
Reference in New Issue
Block a user