Files
saksham 1a4c80958f Initial commit: CI Agent competitive-intelligence monitoring app
FastAPI + Celery + Next.js + Postgres/Redis app with company monitoring,
source collection, LLM-based change analysis, enrichment, and account
security (Turnstile, escalating lockout, email verification).
2026-08-05 10:48:20 -04:00

26 lines
662 B
Python

"""Basic liveness/readiness smoke tests."""
from __future__ import annotations
def test_root_health(client):
resp = client.get("/health")
assert resp.status_code == 200
assert resp.json()["status"] == "ok"
def test_v1_health(client):
resp = client.get("/api/v1/health")
assert resp.status_code == 200
body = resp.json()
assert body["status"] == "ok"
assert "app_name" in body
def test_system_status_reports_mock_providers(client):
resp = client.get("/api/v1/system/status")
assert resp.status_code == 200
body = resp.json()
assert body["llm_provider"] == "mock"
assert body["search_provider"] == "mock"