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.
httpx.AsyncClient
1 parent 354035a commit 0e34059Copy full SHA for 0e34059
tests/test_oauth2_middleware.py
@@ -1,17 +1,17 @@
1
-from fastapi import APIRouter
+import pytest
2
from fastapi import FastAPI
3
-from fastapi.testclient import TestClient
+from httpx import AsyncClient
4
+from social_core.backends.github import GithubOAuth2
5
6
+from fastapi_oauth2.client import OAuth2Client
7
from fastapi_oauth2.middleware import OAuth2Middleware
8
from fastapi_oauth2.router import router as oauth2_router
9
10
app = FastAPI()
-router = APIRouter()
11
12
app.include_router(oauth2_router)
13
app.add_middleware(OAuth2Middleware, config={})
14
-client = TestClient(app)
15
16
17
def test_read_main():
0 commit comments