verbose live UI + tool-level SSE events + Groq default + regression tests

This commit is contained in:
2026-06-03 05:04:29 -03:00
parent 131f4d9b86
commit e124a8a7d9
69 changed files with 3030 additions and 137 deletions

42
tests/test_imports.py Normal file
View File

@@ -0,0 +1,42 @@
"""Regression: every module imports cleanly.
Catches things like:
- the `api/semantic` → `api/datasets` rename leaving a stale import in schema.py
- the `api/tools/observability` → `api/langfuse_client` move
- the `api/anthropic_client` → `api/llm` move
"""
import importlib
import pytest
MODULES = [
"api.main",
"api.config",
"api.langfuse_client",
"api.llm",
"api.datasets",
"api.prompts",
"api.tools.db",
"api.tools.schema",
"api.tools.text_to_sql",
"api.tools.execute_sql",
"api.tools.types",
"api.analyses.base",
"api.analyses.types",
"api.analyses.direct_answer",
"api.analyses.compare_periods",
"api.analyses.registry",
"api.plan.planner",
"api.plan.types",
"api.runtime.runner",
"api.runtime.events",
"api.runtime.state",
"api.runtime.context",
"ctrl.seed.load_bird",
]
@pytest.mark.parametrize("name", MODULES)
def test_module_imports(name):
importlib.import_module(name)