Skip to content

Commit

Permalink
requesting an archive now requires a payload with email (set or not)
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Aug 23, 2024
1 parent 0d72189 commit 6cbce47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/tests/routes/test_archives.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ def test_upload_illustration_without_wrong_authorization(
async def test_request_archive_not_ready(alogged_in_client, project_id, archive_id):
response = await alogged_in_client.post(
f"{constants.api_version_prefix}/projects/"
f"{project_id}/archives/{archive_id}/request"
f"{project_id}/archives/{archive_id}/request",
json={"email": ""}
)
assert response.status_code == HTTPStatus.CONFLICT

Expand All @@ -242,6 +243,7 @@ async def test_request_archive_ready(

response = await alogged_in_client.post(
f"{constants.api_version_prefix}/projects/"
f"{expiring_project_id}/archives/{expiring_archive_id}/request"
f"{expiring_project_id}/archives/{expiring_archive_id}/request",
json={"email": ""},
)
assert response.status_code == HTTPStatus.CREATED

0 comments on commit 6cbce47

Please sign in to comment.