From c6f451de36dab810d2360ca161e42e7973346ecf Mon Sep 17 00:00:00 2001 From: Eduardo Robles Date: Thu, 28 Sep 2023 16:24:38 +0200 Subject: [PATCH] Fix unit tests (#309) Parent issue: https://github.com/sequentech/meta/issues/260 --- iam/api/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iam/api/tests.py b/iam/api/tests.py index 397d8743..ce7c1a0e 100644 --- a/iam/api/tests.py +++ b/iam/api/tests.py @@ -2200,7 +2200,7 @@ def test_register_and_resend_code(self): response = c.post('/api/auth-event/%d/resend_auth_code/' % self.aeid, data) self.assertEqual(response.status_code, 400) r = parse_json_response(response) - self.assertEqual(r['error_codename'], 'AUTH_EVENT_NOT_STARTED') + self.assertEqual(r['error_codename'], 'INVALID_REQUEST') # good: self.aeid.census = close but allow_user_resend = True self.ae.auth_method_config['config']['allow_user_resend'] = True