Skip to content

Commit

Permalink
python: Add basic openapi.json fetching test
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte committed Jan 20, 2025
1 parent 53e4c12 commit 567ee9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,9 @@ def webhook_handler(request: Request) -> Response:
assert message_out.event_type == event_type.name
if with_channel:
assert message_out.channels == [channel]


def test_openapi_json_is_available(svix_server_url: str) -> None:
r = requests.get("{svix_server_url}/openapi.json")
assert r.status_code == 200
assert r.headers["content-type"] == 'application/json; charset=utf8'

0 comments on commit 567ee9a

Please sign in to comment.