Export: Knopf „Noch nicht abgerechnet“; Version 1.5.0 (mit Windows-Setup)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ec99042569
commit
057cca6378
4 files changed
+20
-4
No files matched your search
+14
-1
@@ -1098,11 +1098,18 @@ def test_export_zeitraum_kennzeichnen_und_erledigt(lauf_modern, tmp_path, monkey
|
||||
d.v_auf.set(False)
|
||||
d._ok()
|
||||
|
||||
def ok_offen():
|
||||
d = lauf.dialog(ExportDialog)
|
||||
d.v_von.set("01.10.2026")
|
||||
d.v_bis.set("02.10.2026")
|
||||
next(k for k in _alle(d) if isinstance(k, tk.Button) and k.cget("text") == "Noch nicht abgerechnet").invoke()
|
||||
ok(d.v_von.get(), d.v_bis.get())
|
||||
|
||||
lauf.ablauf([
|
||||
(IMMER, app.exportieren, "Export Oktober 6."),
|
||||
(lambda: lauf.dialog(ExportDialog) is not None, lambda: ok("01.10.2026", "05.10.2026"), "nur bis 5.10."),
|
||||
(lambda: lauf.dialog(ExportDialog) is None, app.exportieren, "Export Rest"),
|
||||
(lambda: lauf.dialog(ExportDialog) is not None, ok, "alles Offene"),
|
||||
(lambda: lauf.dialog(ExportDialog) is not None, ok_offen, "Noch nicht abgerechnet"),
|
||||
(lambda: lauf.dialog(ExportDialog) is None, app.exportieren, "nochmal"),
|
||||
])
|
||||
assert not lauf.uebrig, lauf.diagnose()
|
||||
@@ -1116,3 +1123,9 @@ def test_export_zeitraum_kennzeichnen_und_erledigt(lauf_modern, tmp_path, monkey
|
||||
app.prozent()
|
||||
assert "erledigt" in meldungen[-1]
|
||||
lauf.pruefen()
|
||||
|
||||
|
||||
def _alle(widget):
|
||||
for kind in widget.winfo_children():
|
||||
yield kind
|
||||
yield from _alle(kind)
|
||||
Reference in new issue
Block a user