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).
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
"""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"
|
||||
Reference in New Issue
Block a user