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.
1 parent 8f25cd9 commit 4e0504fCopy full SHA for 4e0504f
tests/test_oauth2_middleware.py
@@ -22,7 +22,8 @@
22
})
23
24
25
-
26
-def test_read_main():
27
- response = client.get("/")
28
- assert response.status_code == 404
+@pytest.mark.anyio
+async def test_auth_redirect():
+ async with AsyncClient(app=app, base_url="http://test") as client:
+ response = await client.get("/oauth2/github/auth")
29
+ assert response.status_code == 303 # Redirect
0 commit comments