Skip to content

Commit

Permalink
Merge branch 'master' into polish-translation_help-fastapi
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Sep 1, 2023
2 parents 026faf5 + 7a63d11 commit 5c4fcab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/en/docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Latest Changes

* ✅ Add missing test for OpenAPI examples, it was missing in coverage. PR [#10188](https://github.com/tiangolo/fastapi/pull/10188) by [@tiangolo](https://github.com/tiangolo).

## 0.103.0

Expand Down
3 changes: 3 additions & 0 deletions tests/test_openapi_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ def cookie_examples(


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

Expand Down

0 comments on commit 5c4fcab

Please sign in to comment.