Browse Source

Update tests/test_openapi_async.py

pull/10638/head
Motov Yurii 2 months ago
committed by GitHub
parent
commit
6b817dc930
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      tests/test_openapi_async.py

2
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")

Loading…
Cancel
Save