From 5dbe72fc61880744d9942a8a519c7516c892909f Mon Sep 17 00:00:00 2001 From: ~Jhellico Date: Fri, 27 Sep 2024 02:46:54 +0300 Subject: [PATCH] Update Azerbaijan holidays in 2024 (#2018) --- holidays/countries/azerbaijan.py | 15 +++++++++++++-- snapshots/countries/AZ_COMMON.json | 13 +++++++++---- tests/countries/test_azerbaijan.py | 8 +++++++- 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/holidays/countries/azerbaijan.py b/holidays/countries/azerbaijan.py index ed236b7eb..9d755cb25 100644 --- a/holidays/countries/azerbaijan.py +++ b/holidays/countries/azerbaijan.py @@ -210,6 +210,7 @@ class AzerbaijanIslamicHolidays(_CustomIslamicHolidays): 2021: (JUL, 20), 2022: (JUL, 9), 2023: (JUN, 28), + 2024: (JUN, 16), } EID_AL_FITR_DATES = { @@ -246,6 +247,9 @@ class AzerbaijanStaticHolidays: # Day off (substituted from %s). substituted_label = tr("İstirahət günü (%s ilə əvəz edilmişdir)") + # Presidential elections. + presidential_elections = tr("Prezidenti seçkiləri") + special_public_holidays = { 2011: (AUG, 29, AUG, 27), 2013: ( @@ -256,8 +260,7 @@ class AzerbaijanStaticHolidays: (JAN, 3, DEC, 28, 2013), (JAN, 6, DEC, 29, 2013), ), - # Presidential elections. - 2018: (APR, 11, tr("Prezidenti seçkiləri")), + 2018: (APR, 11, presidential_elections), # Municipal elections. 2019: (DEC, 27, tr("Bələdiyyə seçkiləri")), 2020: ( @@ -280,6 +283,14 @@ class AzerbaijanStaticHolidays: (JUN, 30, JUN, 25), (NOV, 10, NOV, 4), ), + 2024: ( + (JAN, 4, DEC, 30, 2023), + (JAN, 5, JAN, 7), + (FEB, 7, presidential_elections), + (APR, 12, APR, 6), + (NOV, 12, NOV, 16), + (NOV, 13, NOV, 23), + ), } special_public_holidays_observed = { diff --git a/snapshots/countries/AZ_COMMON.json b/snapshots/countries/AZ_COMMON.json index f70f7b41e..95d1045d5 100644 --- a/snapshots/countries/AZ_COMMON.json +++ b/snapshots/countries/AZ_COMMON.json @@ -701,7 +701,10 @@ "2024-01-01": "New Year's Day", "2024-01-02": "New Year's Day", "2024-01-03": "International Azerbaijanis Solidarity Day (observed)", + "2024-01-04": "Day off (substituted from 12/30/2023)", + "2024-01-05": "Day off (substituted from 01/07/2024)", "2024-01-20": "Martyrs' Day", + "2024-02-07": "Presidential elections", "2024-03-08": "Women's Day", "2024-03-20": "Spring Festival", "2024-03-21": "Spring Festival", @@ -712,20 +715,22 @@ "2024-03-26": "Spring Festival (observed)", "2024-04-10": "Eid al-Fitr", "2024-04-11": "Eid al-Fitr", + "2024-04-12": "Day off (substituted from 04/06/2024)", "2024-05-09": "Victory over Fascism Day", "2024-05-28": "Independence Day", "2024-06-15": "National Liberation Day", - "2024-06-16": "Eid al-Adha (estimated)", - "2024-06-17": "Eid al-Adha (estimated)", + "2024-06-16": "Eid al-Adha", + "2024-06-17": "Eid al-Adha", "2024-06-18": "National Liberation Day (observed)", - "2024-06-19": "Eid al-Adha (observed, estimated)", + "2024-06-19": "Eid al-Adha (observed)", "2024-06-26": "Armed Forces Day", "2024-09-27": "Memorial Day", "2024-10-18": "Independence Restoration Day", "2024-11-08": "Victory Day", "2024-11-09": "National Flag Day", "2024-11-11": "National Flag Day (observed)", - "2024-11-12": "Constitution Day", + "2024-11-12": "Constitution Day; Day off (substituted from 11/16/2024)", + "2024-11-13": "Day off (substituted from 11/23/2024)", "2024-11-17": "National Revival Day", "2024-12-31": "International Azerbaijanis Solidarity Day", "2025-01-01": "New Year's Day", diff --git a/tests/countries/test_azerbaijan.py b/tests/countries/test_azerbaijan.py index 13030f39a..498573025 100644 --- a/tests/countries/test_azerbaijan.py +++ b/tests/countries/test_azerbaijan.py @@ -30,9 +30,10 @@ def test_no_holidays(self): def test_special_holidays(self): self.assertHoliday( + "2007-01-03", "2018-04-11", "2019-12-27", - "2007-01-03", + "2024-02-07", "2072-01-05", ) @@ -55,6 +56,11 @@ def test_substituted_holidays(self): "2023-06-27", "2023-06-30", "2023-11-10", + "2024-01-04", + "2024-01-05", + "2024-04-12", + "2024-11-12", + "2024-11-13", ) def test_new_years_day(self):