Files
ytdlp/tests/test_health.py
T

20 lines
465 B
Python
Raw Normal View History

from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app)
def test_health_returns_healthy() -> None:
response = client.get("/health")
assert response.status_code == 200
assert response.json() == {"status": "healthy"}
def test_root_identifies_application() -> None:
response = client.get("/")
assert response.status_code == 200
assert response.json() == {"name": "Media Ingest", "status": "running"}