Skip to content

Commit

Permalink
fix routes unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrasca committed Oct 31, 2024
1 parent f4fa96c commit 372fbb3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,7 @@ def test_search_route_with__tb_redirect_various_cases_all_access_user(
response = client.get(url, data=form_data)
assert response.status_code == 302

redirected_url = url_for(
expected_redirect_route, _id=expected_params["_id"]
)
redirected_url = url_for(expected_redirect_route)

assert redirected_url in response.headers["Location"]

Expand Down Expand Up @@ -350,8 +348,9 @@ def test_search_route_with_various_cases_standard_user(
response = client.get(url, data=form_data)
assert response.status_code == 302

redirected_url = url_for(expected_redirect_route, **expected_params)

redirected_url = url_for(
expected_redirect_route, _id=expected_params["_id"]
)
assert redirected_url in response.headers["Location"]

for key, expected_value in expected_params.items():
Expand Down

0 comments on commit 372fbb3

Please sign in to comment.