Skip to content

Commit

Permalink
[#2404] Fix redirect for eherkenning user register test
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-sigma authored and alextreme committed May 10, 2024
1 parent 517b033 commit 3f96f89
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/open_inwoner/accounts/tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}"

Expand All @@ -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"])
Expand Down

0 comments on commit 3f96f89

Please sign in to comment.