feat: Start/Ende fuer Fixposten in der GUI + Datumsvalidierung
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -225,6 +225,18 @@ def test_planning_page_has_all_sections(client):
|
||||
assert heading in r.text
|
||||
|
||||
|
||||
def test_planung_fixposten_zeigt_start_und_ende(client, db):
|
||||
client.post("/login", data={"username": "admin", "password": "geheim"})
|
||||
db.add(RecurringItem(name="Befristet-GUI", amount=Decimal("-5.00"),
|
||||
rhythm="monthly", due_day=1,
|
||||
start_date=date(2026, 1, 1), end_date=date(2026, 12, 31)))
|
||||
db.commit()
|
||||
r = client.get("/planung").text
|
||||
assert "<th>Start</th>" in r and "<th>Ende</th>" in r
|
||||
assert "01.01.2026" in r and "31.12.2026" in r
|
||||
assert 'name="start_date"' in r and 'name="end_date"' in r
|
||||
|
||||
|
||||
def test_planning_page_shows_empty_suggestions_hint(client):
|
||||
# UX-Regel: das "Vorschläge aus Buchungen"-Fieldset ist immer sichtbar,
|
||||
# auch ohne Daten - statt komplett zu verschwinden zeigt es einen Hinweis.
|
||||
|
||||
Reference in New Issue
Block a user