Files

17 lines
418 B
Python
Raw Permalink Normal View History

"""Smoke test: verify the test infrastructure itself works."""
from __future__ import annotations
import urllib.request
from tests.fixture_site import start_fixture_site
def test_fixture_site_reachable() -> None:
server, base_url = start_fixture_site()
try:
with urllib.request.urlopen(f"{base_url}/api/users") as resp:
assert resp.status == 200
finally:
server.shutdown()