mirror of https://github.com/tiangolo/fastapi.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
This commit is contained in:
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue