mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-27 02:08:56 -04:00
✅ 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
This commit is contained in:
committed by
GitHub
parent
a3f1689d78
commit
37d46e6b6c
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user