Skip to content

Commit

Permalink
Assert that the base URL is followed by /oauth/authorize
Browse files Browse the repository at this point in the history
  • Loading branch information
eecavanna authored Aug 19, 2024
1 parent 7a2cdea commit ce407a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_login(client: TestClient):
)

assert resp.status_code == 302
assert resp.next.url.startswith(settings.orcid_base_url), # type: ignore
assert resp.next.url.startswith(f"{settings.orcid_base_url}/oauth/authorize"), # type: ignore


def test_current_user(client: TestClient, logged_in_user):
Expand Down

0 comments on commit ce407a9

Please sign in to comment.