Files
ihasmail-inbuxa/tests/test_smoke.py
T
2025-10-18 23:11:15 -07:00

8 lines
209 B
Python

from fastapi.testclient import TestClient
from app.main import app
def test_root_redirect():
client = TestClient(app)
r = client.get("/", allow_redirects=False)
assert r.status_code in (302, 303)