11 lines
420 B
Python
11 lines
420 B
Python
from app.search_gateway_dashboard import SearchGatewayDashboard
|
|
|
|
|
|
def test_search_gateway_dashboard_reports_provider_failures():
|
|
result = SearchGatewayDashboard().overview(
|
|
search_runs=[{"status": "not_found"}, {"status": "blocked"}],
|
|
providers=[{"name": "p1", "status": "failed"}],
|
|
)
|
|
assert result["route"] == "/admin/ai-evolution/search"
|
|
assert result["status"] == "attention_required"
|