feat: Web-GUI Basis, Uebersicht, Buchungsliste

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-17 18:45:54 +02:00
parent e8ea948b38
commit a6009c47e3
11 changed files with 488 additions and 9 deletions

13
finance/tests/test_gui.py Normal file
View File

@@ -0,0 +1,13 @@
def test_pages_require_login(client):
for path in ("/", "/buchungen", "/import", "/planung"):
r = client.get(path, follow_redirects=False)
assert r.status_code in (302, 303), path
assert r.headers["location"] == "/login"
def test_pages_render_after_login(client):
client.post("/login", data={"username": "admin", "password": "geheim"})
for path in ("/", "/buchungen"):
r = client.get(path)
assert r.status_code == 200
assert "Finanzberatung" in r.text