Skip to content

Commit

Permalink
Update Azerbaijan holidays in 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
KJhellico committed Sep 25, 2024
1 parent 0e58e46 commit f1a8a3d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
15 changes: 13 additions & 2 deletions holidays/countries/azerbaijan.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ class AzerbaijanIslamicHolidays(_CustomIslamicHolidays):
2021: (JUL, 20),
2022: (JUL, 9),
2023: (JUN, 28),
2024: (JUN, 16),
}

EID_AL_FITR_DATES = {
Expand Down Expand Up @@ -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: (
Expand All @@ -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: (
Expand All @@ -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 = {
Expand Down
13 changes: 9 additions & 4 deletions snapshots/countries/AZ_COMMON.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
8 changes: 7 additions & 1 deletion tests/countries/test_azerbaijan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)

Expand All @@ -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):
Expand Down

0 comments on commit f1a8a3d

Please sign in to comment.