From 410215f57598925f756f4b7b01a4c60f764fa4bc Mon Sep 17 00:00:00 2001 From: Mira Weller Date: Tue, 30 Sep 2025 15:06:51 +0200 Subject: [PATCH] Tests: accept redirect to password change instead of settings --- src/tests/control/test_auth.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests/control/test_auth.py b/src/tests/control/test_auth.py index 5a23a56afd..10dcda16ea 100644 --- a/src/tests/control/test_auth.py +++ b/src/tests/control/test_auth.py @@ -1134,7 +1134,7 @@ class PasswordChangeRequiredTest(TestCase): super().setUp() self.user = User.objects.create_user('dummy@dummy.dummy', 'dummy') - def test_redirect_to_settings(self): + def test_redirect_to_password_change(self): self.user.needs_password_change = True self.user.save() self.client.login(email='dummy@dummy.dummy', password='dummy') @@ -1143,9 +1143,9 @@ class PasswordChangeRequiredTest(TestCase): self.assertEqual(response.status_code, 302) assert self.user.needs_password_change is True - self.assertIn('/control/settings?next=/control/events/', response['Location']) + self.assertIn('/control/settings/password/change?next=/control/events/', response['Location']) - def test_redirect_to_2fa_to_settings(self): + def test_redirect_to_2fa_to_password_change(self): self.user.require_2fa = True self.user.needs_password_change = True self.user.save() @@ -1168,4 +1168,4 @@ class PasswordChangeRequiredTest(TestCase): response = self.client.get('/control/events/') self.assertEqual(response.status_code, 302) - self.assertIn('/control/settings?next=/control/events/', response['Location']) + self.assertIn('/control/settings/password/change?next=/control/events/', response['Location'])