aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Kieran Siek <[email protected]>2021-06-05 17:54:15 +0800
committerGravatar GitHub <[email protected]>2021-06-05 17:54:15 +0800
commit14ba0e9e21c78da7a27e6877fef691722ccdba13 (patch)
treebb22ffc81db184096d01f608087bad169a489080
parentInclude metricity db creation for local setup guide. (diff)
parentMerge pull request #518 from python-discord/update-integrity-pattern-for-post... (diff)
Merge branch 'main' into include-metricity-db-creation-for-local-setup
-rw-r--r--pydis_site/apps/api/tests/test_infractions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pydis_site/apps/api/tests/test_infractions.py b/pydis_site/apps/api/tests/test_infractions.py
index 967698ff..9aae16c0 100644
--- a/pydis_site/apps/api/tests/test_infractions.py
+++ b/pydis_site/apps/api/tests/test_infractions.py
@@ -664,7 +664,10 @@ class CreationTests(APISubdomainTestCase):
)
def test_integrity_error_if_missing_active_field(self):
- pattern = 'null value in column "active" violates not-null constraint'
+ pattern = (
+ 'null value in column "active" (of relation "api_infraction" )?'
+ 'violates not-null constraint'
+ )
with self.assertRaisesRegex(IntegrityError, pattern):
Infraction.objects.create(
user=self.user,