Init Project Flexly Estimator

This commit is contained in:
Alexey Dudin
2026-11-03 09:37:44 +03:00
commit 447464c16c
160 changed files with 12779 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
from fastapi.testclient import TestClient
from estimator.api.app import create_app
from estimator.config.settings import Settings
def test_health(monkeypatch, dsn):
monkeypatch.setenv("EST_DATABASE__DSN", dsn)
monkeypatch.setenv("EST_LLM__ANTHROPIC__API_KEY", "sk-test")
with TestClient(create_app(Settings())) as client:
r = client.get("/health")
assert r.status_code == 200
assert r.json()["status"] == "ok"