Skip to content

Commit 37d46e6

Browse files
authored
✅ Add missing test for OpenAPI examples, it was missing in coverage (fastapi#10188)
✅ Add missing test for OpenAPI examples, it seems it was discovered in coverage by an upgrade in AnyIO
1 parent a3f1689 commit 37d46e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_openapi_examples.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ def cookie_examples(
125125

126126

127127
def test_call_api():
128+
response = client.post("/examples/", json={"data": "example1"})
129+
assert response.status_code == 200, response.text
130+
128131
response = client.get("/path_examples/foo")
129132
assert response.status_code == 200, response.text
130133

0 commit comments

Comments
 (0)