Browse Source

🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

pull/9837/head
pre-commit-ci[bot] 8 months ago
parent
commit
19e5aba29c
  1. 6
      tests/test_application.py

6
tests/test_application.py

@ -55,7 +55,7 @@ def test_enum_status_code_response():
def test_openapi_schema(): def test_openapi_schema():
response = client.get("/openapi.json") response = client.get("/openapi.json")
assert response.status_code == 200, response.text assert response.status_code == 200, response.text
assert response.json()== { assert response.json() == {
"openapi": "3.1.0", "openapi": "3.1.0",
"info": {"title": "FastAPI", "version": "0.1.0"}, "info": {"title": "FastAPI", "version": "0.1.0"},
"externalDocs": { "externalDocs": {
@ -1517,9 +1517,7 @@ def test_openapi_schema():
"detail": { "detail": {
"title": "Detail", "title": "Detail",
"type": "array", "type": "array",
"items": { "items": {"$ref": "#/components/schemas/ValidationError"},
"$ref": "#/components/schemas/ValidationError"
},
} }
}, },
}, },

Loading…
Cancel
Save