From 733d3998e2b452ace5c4382a9f6efa698b576383 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 26 Dec 2024 21:29:04 -0500 Subject: [PATCH] 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". --- tests/composite_pk/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/composite_pk/tests.py b/tests/composite_pk/tests.py index 25e5f2fdd5..4ebdbc371e 100644 --- a/tests/composite_pk/tests.py +++ b/tests/composite_pk/tests.py @@ -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(