Tests: pytest-Suite für Konten, Haushalt, Kanban, Reisen und Migrationen

- backend/tests: jede Test-Funktion bekommt eine frische Datenbank;
  test_migrationen.py baut ältere Datenbank-Stände nach und prüft die
  verlustfreie Umstellung (auch zweiter Start ohne Änderung)
- requirements-dev.txt mit pytest
- Fix (von den Tests gefunden): Eine neue, leere Datenbank bekam keine
  erste Liste "Zuhause"; jetzt einmalig beim ersten Start

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
guyg1474andClaude Opus 5.5 committed 2026-10-15 18:07:54 +02:00
1 parent dc4ce18593
commit 79cbaab092
10 files changed
+478

No files matched your search

+11
View File
@@ -46,6 +46,17 @@ cd frontend && npm run dev # Oberfläche auf http://loc
```
Vite leitet `/api` und `/uploads` automatisch ans Backend weiter.
### Tests
```bash
cd backend
python3 -m pip --python .venv/bin/python install -r requirements-dev.txt # einmalig: pytest
.venv/bin/python -m pytest
```
Jeder Test bekommt eine frische, leere Datenbank. `tests/test_migrationen.py` baut ältere
Datenbank-Stände nach und prüft, dass der Start sie verlustfrei umstellt.
Die API-Dokumentation gibt es unter http://localhost:3000/api/docs.
## Konfiguration (`config.json`)