import pytest pytestmark = [pytest.mark.integration, pytest.mark.django_db] def test_health_endpoint_reports_database_connection(client): response = client.get("/api/health") assert response.status_code == 200 assert response.json()["status"] == "ok"