mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-26 11:49:56 -04:00
✅ 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:
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"}
|
||||
Reference in new issue
Block a user