feat: Hilfe-Seite mit Gebrauchsanleitung

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 15:02:19 +02:00
parent d5103a0fb3
commit e40442b73b
4 changed files with 91 additions and 2 deletions

View File

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