Skip to content

Commit a5dc5cb

Browse files
committed
Be less specific about message
1 parent 62438f8 commit a5dc5cb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

api/tests/privaterelay_views_tests.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,7 @@ def process_auto_signup_then_create_account(
388388
"allauth.socialaccount.internal.flows.signup.process_auto_signup",
389389
side_effect=process_auto_signup_then_create_account,
390390
) as mock_process_signup,
391-
self.assertRaisesMessage(
392-
IntegrityError, "duplicate key value violates unique constraint"
393-
),
391+
self.assertRaises(IntegrityError),
394392
):
395393
client.post(self.path)
396394
mock_process_signup.assert_called_once()

0 commit comments

Comments
 (0)