Skip to content

Commit

Permalink
test: fix expected output to default to english
Browse files Browse the repository at this point in the history
  • Loading branch information
ElJocho committed Feb 29, 2024
1 parent cfbbe17 commit a6ce00e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/unit/test_routes_digitize.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ def test_digitize_result_get(client):
"""GET /digitize/results without UUID should redirect to /digitize"""
resp = client.get("/digitize/results")
redirect_path = "/digitize"
assert resp.status_code == 302 and resp.headers.get("Location") == redirect_path
assert (
resp.status_code == 302
and resp.headers.get("Location") == "/en" + redirect_path
)


@pytest.mark.skip(reason="Mocking of chained/grouped tasks is too complex for now")
Expand All @@ -51,7 +54,10 @@ def test_digitize_result_post_no_files(client, mock_task):
data = {}
resp = client.post("/digitize/results", data=data)
redirect_path = "/digitize"
assert resp.status_code == 302 and resp.headers.get("Location") == redirect_path
assert (
resp.status_code == 302
and resp.headers.get("Location") == "/en" + redirect_path
)


def test_digitize_results_uuid(client):
Expand Down

0 comments on commit a6ce00e

Please sign in to comment.