We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef3afdf + a9df3b0 commit 14ba0e9Copy full SHA for 14ba0e9
pydis_site/apps/api/tests/test_infractions.py
@@ -664,7 +664,10 @@ def test_unique_constraint_accepts_active_infractions_for_different_users(self):
664
)
665
666
def test_integrity_error_if_missing_active_field(self):
667
- pattern = 'null value in column "active" violates not-null constraint'
+ pattern = (
668
+ 'null value in column "active" (of relation "api_infraction" )?'
669
+ 'violates not-null constraint'
670
+ )
671
with self.assertRaisesRegex(IntegrityError, pattern):
672
Infraction.objects.create(
673
user=self.user,
0 commit comments