Skip to content

Commit 417bbed

Browse files
authored
BUG: Calendar fixes for SYD and WLG (#190) (#1111)
1 parent ed166f0 commit 417bbed

File tree

5 files changed

+1500
-534
lines changed

5 files changed

+1500
-534
lines changed

python/tests/scheduling/test_calendars.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,3 +675,16 @@ def test_fed_sunday_to_monday():
675675
fed = get_calendar("fed")
676676
assert fed.is_bus_day(dt(2021, 12, 24))
677677
assert not fed.is_bus_day(dt(2022, 12, 26))
678+
679+
680+
def test_syd_nsw_holidays():
681+
cal = get_calendar("syd")
682+
assert not cal.is_bus_day(dt(1970, 8, 3))
683+
assert not cal.is_bus_day(dt(1970, 10, 5))
684+
685+
686+
def test_wlg_changes():
687+
cal = get_calendar("wlg")
688+
assert not cal.is_bus_day(dt(2022, 9, 26))
689+
assert not cal.is_bus_day(dt(2025, 1, 20))
690+
assert not cal.is_bus_day(dt(2025, 1, 27))

0 commit comments

Comments
 (0)