diff --git a/tests/test_return_none_stringified_annotations.py b/tests/test_return_none_stringified_annotations.py index 06f151fe3d..be052d532e 100644 --- a/tests/test_return_none_stringified_annotations.py +++ b/tests/test_return_none_stringified_annotations.py @@ -8,7 +8,8 @@ def test_no_content(): app = FastAPI() @app.get("/no-content", status_code=http.HTTPStatus.NO_CONTENT) - def return_no_content() -> "None": ... # pragma: no cover + def return_no_content() -> "None": + return client = TestClient(app) response = client.get("/no-content")