From 3f96f890c82749bd9d929828d3c2d0b70317a868 Mon Sep 17 00:00:00 2001 From: Paul Schilling Date: Tue, 7 May 2024 11:32:12 +0200 Subject: [PATCH] [#2404] Fix redirect for eherkenning user register test --- src/open_inwoner/accounts/tests/test_auth.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/open_inwoner/accounts/tests/test_auth.py b/src/open_inwoner/accounts/tests/test_auth.py index 2bc07869ad..193e2677b9 100644 --- a/src/open_inwoner/accounts/tests/test_auth.py +++ b/src/open_inwoner/accounts/tests/test_auth.py @@ -1140,7 +1140,7 @@ def test_eherkenning_user_success(self, mock_kvk, mock_retrieve_rsin_with_kvk): url = reverse("eherkenning-mock:password") params = { "acs": reverse("eherkenning:acs"), - "next": reverse("profile:registration_necessary"), + "next": reverse("kvk:branches"), } url = f"{url}?{urlencode(params)}" @@ -1149,8 +1149,7 @@ def test_eherkenning_user_success(self, mock_kvk, mock_retrieve_rsin_with_kvk): "auth_name": "12345678", "auth_pass": "bar", } - # post our password to the IDP - response = self.app.post(url, data).follow().follow() + response = self.app.post(url, data).follow() # select company branch response = self.app.get(response["Location"])