Skip to content

Commit ce407a9

Browse files
authored
Assert that the base URL is followed by /oauth/authorize
1 parent 7a2cdea commit ce407a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_login(client: TestClient):
1414
)
1515

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

1919

2020
def test_current_user(client: TestClient, logged_in_user):

0 commit comments

Comments
 (0)