From: Sebastián Ramírez Date: Fri, 1 Sep 2023 21:36:08 +0000 (+0200) Subject: ✅ Add missing test for OpenAPI examples, it was missing in coverage (#10188) X-Git-Tag: 0.103.1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37d46e6b6c58c0e38747d91c4a0cdc0ea76c9d40;p=thirdparty%2Ffastapi%2Ffastapi.git ✅ Add missing test for OpenAPI examples, it was missing in coverage (#10188) ✅ Add missing test for OpenAPI examples, it seems it was discovered in coverage by an upgrade in AnyIO --- diff --git a/tests/test_openapi_examples.py b/tests/test_openapi_examples.py index d0e35953e1..70664a8a4c 100644 --- a/tests/test_openapi_examples.py +++ b/tests/test_openapi_examples.py @@ -125,6 +125,9 @@ client = TestClient(app) def test_call_api(): + response = client.post("/examples/", json={"data": "example1"}) + assert response.status_code == 200, response.text + response = client.get("/path_examples/foo") assert response.status_code == 200, response.text