From 3675af805f813cf69092cb1327e8ce46fa8c13b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartolom=C3=A9=20S=C3=A1nchez=20Salado?= Date: Sat, 29 Jan 2022 20:57:36 +0100 Subject: [PATCH] Fix tests --- snowpenguin/django/recaptcha3/tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/snowpenguin/django/recaptcha3/tests.py b/snowpenguin/django/recaptcha3/tests.py index 3fad417..dc98f99 100644 --- a/snowpenguin/django/recaptcha3/tests.py +++ b/snowpenguin/django/recaptcha3/tests.py @@ -32,6 +32,7 @@ def test_dummy_validation_canfail(self): self.assertEqual(form.cleaned_data['recaptcha'].get('score'), 0.4) self.assertEqual(form.cleaned_data['recaptcha'].get('hostname'), 'localhost') self.assertEqual(form.cleaned_data['recaptcha'].get('action'), 'homepage') + del os.environ['RECAPTCHA_DISABLE'] @mock.patch('requests.post') def test_validate_error_invalid_token(self, requests_post):