]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:white_check_mark: Fix OpenAPI test for body schema
authorSebastián Ramírez <tiangolo@gmail.com>
Sat, 22 Dec 2018 05:00:58 +0000 (09:00 +0400)
committerSebastián Ramírez <tiangolo@gmail.com>
Sat, 22 Dec 2018 05:00:58 +0000 (09:00 +0400)
pyproject.toml
tests/test_tutorial/test_body_schema/test_tutorial001.py

index d2c8116d8ee036e0b1078a9009d851865d4f8ff2..bb91f789dd50be98dc4ab9c94acfbcd32b328c0a 100644 (file)
@@ -35,7 +35,8 @@ test = [
     "mypy",
     "black",
     "isort",
-    "requests"
+    "requests",
+    "email_validator"
 ]
 doc = [
     "mkdocs",
index 58b5f891d24a7a081b23fc47416c2503a0169787..15f10653ab381c537e24f3da1a6e337e27008836 100644 (file)
@@ -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