feat: Seite Aufteilung – Auswahl, Kennzahlen, Tabelle, Tortendiagramm (A13-T5)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -70,3 +70,14 @@ def test_index_aktionsspalten_ohne_sortierung(client):
|
||||
def test_buchungen_tabelle_ist_serverseitig(client):
|
||||
_login(client)
|
||||
assert 'data-sort-mode="server"' in client.get("/buchungen").text
|
||||
|
||||
|
||||
def test_aufteilung_tabelle_sortierbar_tfoot_fest(client, db):
|
||||
_login(client)
|
||||
db.add(RecurringItem(name="R", amount=Decimal("-1.00"), rhythm="monthly", due_day=1))
|
||||
db.add(RecurringItem(name="G", amount=Decimal("10.00"), rhythm="monthly", due_day=1))
|
||||
db.commit()
|
||||
t = client.get("/aufteilung", params={"monat": "2030-03"}).text
|
||||
table = re.search(r"<table[^>]*>.*?</table>", t, re.S).group(0)
|
||||
assert 'data-sort-mode="server"' not in table
|
||||
assert re.search(r"</tbody>\s*<tfoot>", table)
|
||||
|
||||
Reference in New Issue
Block a user