Skip to content

Commit

Permalink
using 401 status code in tests for missing or expired zenodo token
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdash committed Oct 11, 2024
1 parent 520d4e3 commit 04a8460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_repository_authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def test_get_access_token_not_found(client_test, user_cookie):
response = await client_test.get(
prefix + "/access_token/zenodo?access_token=" + user_cookie, follow_redirects=False
)
assert response.status_code == 404
assert response.status_code == 401


async def test_get_access_token(client_test, user_cookie, authorize_response):
Expand All @@ -55,4 +55,4 @@ async def test_get_access_token_expired(client_test, user_cookie, authorize_resp
response = await client_test.get(
prefix + "/access_token/zenodo?access_token=" + user_cookie, follow_redirects=False
)
assert response.status_code == 404
assert response.status_code == 401

0 comments on commit 04a8460

Please sign in to comment.