feat: CRUD-API Konten/Buchungen/Kategorien/Regeln

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-17 18:11:56 +02:00
parent 193bbc450c
commit 320abd6542
10 changed files with 356 additions and 7 deletions

View File

@@ -27,7 +27,11 @@ def client(db, monkeypatch):
monkeypatch.setenv("FB_GUI_PASSWORD_HASH", hash_password("geheim"))
get_settings.cache_clear()
from app.main import app
app.dependency_overrides[get_session] = lambda: iter([db])
def _override_get_session():
yield db
app.dependency_overrides[get_session] = _override_get_session
with TestClient(app) as c:
yield c
app.dependency_overrides.clear()