Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix malaysia 2025 #35

Merged
merged 2 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions calendra/asia/malaysia.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ class Malaysia(IslamicMixin, ChineseNewYearCalendar):
2022: date(2022, 10, 24),
2023: date(2023, 11, 13), # in lieu of 12th Nov
2024: date(2024, 10, 31),
2025: date(2025, 10, 20),
2026: date(2026, 11, 9),
2027: date(2027, 10, 28),
}

# Ref: https://publicholidays.com.my/thaipusam/
Expand All @@ -71,6 +74,9 @@ class Malaysia(IslamicMixin, ChineseNewYearCalendar):
2022: date(2022, 1, 18),
2023: date(2023, 2, 4),
2024: date(2024, 1, 25),
2025: date(2025, 2, 11),
2026: date(2026, 2, 2),
2027: date(2027, 1, 24),
}
chinese_new_year_label = "First Day of Lunar New Year"
include_chinese_second_day = True
Expand Down
4 changes: 2 additions & 2 deletions calendra/tests/test_asia.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,8 @@ def test_fix_deepavali_2018(self):
self.assertEqual(holidays[deepavali], "Deepavali")

def test_msia_thaipusam(self):
# we only have them for years 2010-2024
self.assertEqual(set(self.cal.MSIA_THAIPUSAM), set(range(2010, 2025)))
# we only have them for years 2010-2027
self.assertEqual(set(self.cal.MSIA_THAIPUSAM), set(range(2010, 2028)))

def test_missing_deepavali(self):
save_2020 = self.cal.MSIA_DEEPAVALI[2020]
Expand Down
1 change: 1 addition & 0 deletions newsfragments/35.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated Malaysia calendar through 2027.
Loading