Files
python-common-app/api/tests/test_app.py
EremeevRA d6638215f1
Some checks failed
CI / test (push) Failing after 7s
Test Workflow / test (push) Successful in 1s
failed test
2026-03-23 14:12:00 +03:00

25 lines
443 B
Python

from fastapi.testclient import TestClient
from api.main import app
client = TestClient(app)
def test_health() -> None:
resp = client.get("/health")
assert resp.status_code == 200
assert resp.json() == {"status": "ok"}
def test_root() -> None:
resp = client.get("/")
assert resp.status_code == 200
assert resp.json() == {"message": "FastAPI is running"}
def test_checker() -> None:
a = 1
assert a == 2