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 03fec3e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/tests/test_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import itertools
import requests
import uuid
from typing import Any, Dict, List, Optional

Expand Down Expand Up @@ -234,3 +235,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 03fec3e

Please sign in to comment.