feat: Szenario-Einträge je Stichtag mit Zeitraum und Art Neuer Betrag (A14-T2)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -27,3 +27,10 @@ def test_monthly_leap_year_clamping():
|
||||
def test_quarterly_clamping():
|
||||
got = occurrences("quarterly", 31, date(2026, 1, 1), date(2026, 12, 31))
|
||||
assert got == [date(2026, 1, 31), date(2026, 4, 30), date(2026, 7, 31), date(2026, 10, 31)]
|
||||
|
||||
|
||||
def test_due_in_month_klemmt_auf_monatsende():
|
||||
from app.engine.recurrence import due_in_month
|
||||
assert due_in_month(date(2030, 2, 1), 31) == date(2030, 2, 28)
|
||||
assert due_in_month(date(2032, 2, 10), 30) == date(2032, 2, 29)
|
||||
assert due_in_month(date(2030, 10, 1), 14) == date(2030, 10, 14)
|
||||
|
||||
Reference in New Issue
Block a user