Browse Source

Tweak test

pull/9425/head
Sebastián Ramírez 11 months ago
parent
commit
c722eef93a
  1. 3
      tests/test_return_none_stringified_annotations.py

3
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")

Loading…
Cancel
Save