✅ Add the docs_src directory to test coverage and update tests (#1904)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Marcelo TrylesinskiandSebastián Ramírez authored and GitHub committed 2021-07-29 11:26:07 +02:00
1 parent 29e7b31ee6
commit fa2c750443
10 files changed
+60 -18

No files matched your search

@@ -44,3 +44,10 @@ def test_disable_openapi(monkeypatch):
assert response.status_code == 404, response.text
response = client.get("/redoc")
assert response.status_code == 404, response.text
def test_root():
client = TestClient(tutorial001.app)
response = client.get("/")
assert response.status_code == 200
assert response.json() == {"message": "Hello World"}