foxhole/tests/test_main.py
2023-04-03 09:50:59 +08:00

10 lines
285 B
Python

#!/usr/bin/env python3
from fastapi.testclient import TestClient
from sqlalchemy.orm import Session
def test_index__html(client: TestClient):
response = client.get("/")
assert response.status_code == 200
# assert response.headers["content-type"].startswith("text/html")