We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
black
1 parent 16e38ab commit 11cfe6bCopy full SHA for 11cfe6b
tests/test_auth.py
@@ -14,8 +14,10 @@ def test_login(client: TestClient):
14
)
15
16
assert resp.status_code == 302
17
- assert resp.next.url.startswith("https://orcid.org/oauth/authorize") or \
18
- resp.next.url.startswith("https://sandbox.orcid.org/oauth/authorize") # type: ignore
+ assert any((
+ resp.next.url.startswith("https://orcid.org/oauth/authorize"), # type: ignore
19
+ resp.next.url.startswith("https://sandbox.orcid.org/oauth/authorize"), # type: ignore
20
+ ))
21
22
23
def test_current_user(client: TestClient, logged_in_user):
0 commit comments