Skip to content

Commit

Permalink
fix: Remove exception from assert_in
Browse files Browse the repository at this point in the history
  • Loading branch information
kovalch committed Jul 2, 2024
1 parent 203084c commit 081152c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/subscribe/tests/test_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def test_verify_recaptcha_failure(
if isinstance(cm, ValidationError):
assert_in(
'Invalid reCAPTCHA response: "g_recaptcha_response"',
str(cm.exception.error_dict),
str(cm.error_dict),
)

# Ensuring the email is not sent due to invalid reCAPTCHA
Expand Down

0 comments on commit 081152c

Please sign in to comment.