fix due days to checkout

This commit is contained in:
2026-01-19 20:40:23 -03:00
parent 6732e07dfa
commit fde5c31ffc
2 changed files with 18 additions and 19 deletions

View File

@@ -165,11 +165,9 @@ def test_calc_due_date_skips_weekends_and_holidays():
holidays=holidays,
)
# Mon (12) -> holiday (ignored)
# Tue (13) -> 1
# Wed (14) -> 2
# Thu (15) -> 3 ✅
expected = datetime(2026, 1, 15, 10, 30)
# Fri (9) + 3 calendar days -> Mon (12)
# Mon (12) is a holiday -> adjust to Tue (13)
expected = datetime(2026, 1, 13, 10, 30)
assert result == expected