✅ Fix OpenAPI test for body schema

This commit is contained in:
Sebastián Ramírez committed 2018-12-22 09:00:58 +04:00
1 parent d498b7feb3
commit 3180f35bdd
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -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