Motov Yurii
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
tests/test_openapi_async.py
|
|
@ -6,7 +6,7 @@ def test_allow_async_openapi(): |
|
|
|
async def async_openapi(): |
|
|
|
return {"foo": "bar"} |
|
|
|
|
|
|
|
mod_app = FastAPI() # use fresh instance to not affect other tests |
|
|
|
mod_app = FastAPI() |
|
|
|
mod_app.openapi = async_openapi |
|
|
|
mod_client = TestClient(mod_app) |
|
|
|
response = mod_client.get("/openapi.json") |
|
|
|