diff --git a/tests/endpoints/__init__.py b/tests/endpoints/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/endpoints/a.py b/tests/endpoints/a.py deleted file mode 100644 index 19a1b18cc..000000000 --- a/tests/endpoints/a.py +++ /dev/null @@ -1,13 +0,0 @@ -from fastapi import APIRouter - -router = APIRouter() - - -@router.get("/dog") -def get_a_dog(): - return "Woof" - - -@router.get("/cat") -def get_a_cat(): - return "Meow" diff --git a/tests/endpoints/b.py b/tests/endpoints/b.py deleted file mode 100644 index 9105a7144..000000000 --- a/tests/endpoints/b.py +++ /dev/null @@ -1,13 +0,0 @@ -from fastapi import APIRouter - -router = APIRouter() - - -@router.get("/dog") -def get_b_dog(): - return "B Woof" - - -@router.get("/cat") -def get_b_cat(): - return "B Meow" diff --git a/tests/test_application.py b/tests/test_application.py index e0bf9f11b..55394c19d 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -1147,10 +1147,12 @@ def test_get_path(path, expected_status, expected_response): def test_swagger_ui(): response = client.get("/docs") assert response.status_code == 200 + assert response.headers["content-type"] == "text/html; charset=utf-8" assert "swagger-ui-dist" in response.text def test_redoc(): response = client.get("/redoc") assert response.status_code == 200 + assert response.headers["content-type"] == "text/html; charset=utf-8" assert "redoc@next" in response.text