mirror of
https://github.com/fastapi/fastapi.git
synced 2026-03-30 20:54:03 -04:00
✅ Fix OpenAPI test for body schema
This commit is contained in:
@@ -35,7 +35,8 @@ test = [
|
||||
"mypy",
|
||||
"black",
|
||||
"isort",
|
||||
"requests"
|
||||
"requests",
|
||||
"email_validator"
|
||||
]
|
||||
doc = [
|
||||
"mkdocs",
|
||||
|
||||
@@ -107,8 +107,8 @@ openapi_schema = {
|
||||
}
|
||||
|
||||
|
||||
def openapi_schema():
|
||||
response = client.put("/openapi.json")
|
||||
def test_openapi_schema():
|
||||
response = client.get("/openapi.json")
|
||||
assert response.status_code == 200
|
||||
assert response.json() == openapi_schema
|
||||
|
||||
|
||||
Reference in New Issue
Block a user