fix due days to checkout
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user