From ab5816ad487e87d4abd4d8c13c0be77d125168be Mon Sep 17 00:00:00 2001 From: ~Jhellico Date: Sun, 6 Oct 2024 17:58:41 +0300 Subject: [PATCH] =?UTF-8?q?Update=20Cura=C3=A7ao=20holidays:=20add=20HALF?= =?UTF-8?q?=5FDAY=20holidays=20(#2039)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.rst | 2 +- holidays/countries/curacao.py | 12 ++- holidays/locale/en_US/LC_MESSAGES/CW.po | 12 ++- holidays/locale/nl/LC_MESSAGES/CW.po | 12 ++- holidays/locale/pap_CW/LC_MESSAGES/CW.po | 12 ++- holidays/locale/uk/LC_MESSAGES/CW.po | 10 ++- snapshots/countries/CW_COMMON.json | 99 +++++++++++++++++++++++- tests/countries/test_curacao.py | 23 ++++-- 8 files changed, 156 insertions(+), 26 deletions(-) diff --git a/README.rst b/README.rst index fef3a6653..77098ff68 100644 --- a/README.rst +++ b/README.rst @@ -369,7 +369,7 @@ All other default values are highlighted with bold: - CW - - en_US, nl, **pap_CW**, uk - - + - HALF_DAY * - Cyprus - CY - diff --git a/holidays/countries/curacao.py b/holidays/countries/curacao.py index 391e8c5db..4c9d512c1 100644 --- a/holidays/countries/curacao.py +++ b/holidays/countries/curacao.py @@ -14,6 +14,7 @@ from gettext import gettext as tr from holidays.calendars.gregorian import APR, MAY, _timedelta +from holidays.constants import HALF_DAY, PUBLIC from holidays.groups import ChristianHolidays, InternationalHolidays from holidays.holiday_base import HolidayBase @@ -22,13 +23,11 @@ class Curacao(HolidayBase, ChristianHolidays, InternationalHolidays): """ https://loketdigital.gobiernu.cw/Loket/product/571960bbe1e5fe8712b10a1323630e70 https://en.wikipedia.org/wiki/Public_holidays_in_Cura%C3%A7ao - - New Year's Eve (Vispu di Aña Nobo) is a half-day public holiday, though - this isn't supported by Python Holidays so it won't be implemented. """ country = "CW" default_language = "pap_CW" + supported_categories = (HALF_DAY, PUBLIC) supported_languages = ("en_US", "nl", "pap_CW", "uk") def __init__(self, *args, **kwargs): @@ -136,6 +135,13 @@ def _populate_public_holidays(self): # Second Day of Christmas self._add_christmas_day_two(tr("Di dos dia di Pasku di Nasementu")) + def _populate_half_day_holidays(self): + if self._year <= 1953: + return None + + # New Year's Eve. + self._add_new_years_eve(tr("Vispu di Aña Nobo")) + class CW(Curacao): pass diff --git a/holidays/locale/en_US/LC_MESSAGES/CW.po b/holidays/locale/en_US/LC_MESSAGES/CW.po index 077d335ba..4fab31dd9 100644 --- a/holidays/locale/en_US/LC_MESSAGES/CW.po +++ b/holidays/locale/en_US/LC_MESSAGES/CW.po @@ -14,10 +14,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Python Holidays 0.27\n" +"Project-Id-Version: Python Holidays 0.58\n" "POT-Creation-Date: 2023-06-13 16:35+0700\n" -"PO-Revision-Date: \n" -"Last-Translator: PPsyrius \n" +"PO-Revision-Date: 2024-10-05 22:08+0300\n" +"Last-Translator: ~Jhellico \n" "Language-Team: Python Holidays localization team\n" "Language: en_US\n" "MIME-Version: 1.0\n" @@ -25,7 +25,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Generated-By: pygettext.py 1.5\n" -"X-Generator: Poedit 3.3.1\n" +"X-Generator: Poedit 3.5\n" #. New Year's Day msgid "Aña Nobo" @@ -78,3 +78,7 @@ msgstr "Christmas Day" #. Second Day of Christmas msgid "Di dos dia di Pasku di Nasementu" msgstr "Second Day of Christmas" + +#. New Year's Eve. +msgid "Vispu di Aña Nobo" +msgstr "New Year's Eve" diff --git a/holidays/locale/nl/LC_MESSAGES/CW.po b/holidays/locale/nl/LC_MESSAGES/CW.po index 8772fd104..f489576da 100644 --- a/holidays/locale/nl/LC_MESSAGES/CW.po +++ b/holidays/locale/nl/LC_MESSAGES/CW.po @@ -14,10 +14,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Python Holidays 0.27\n" +"Project-Id-Version: Python Holidays 0.58\n" "POT-Creation-Date: 2023-06-13 16:35+0700\n" -"PO-Revision-Date: \n" -"Last-Translator: PPsyrius \n" +"PO-Revision-Date: 2024-10-05 22:08+0300\n" +"Last-Translator: ~Jhellico \n" "Language-Team: Python Holidays localization team\n" "Language: nl\n" "MIME-Version: 1.0\n" @@ -25,7 +25,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Generated-By: pygettext.py 1.5\n" -"X-Generator: Poedit 3.3.1\n" +"X-Generator: Poedit 3.5\n" #. New Year's Day msgid "Aña Nobo" @@ -78,3 +78,7 @@ msgstr "Kerst" #. Second Day of Christmas msgid "Di dos dia di Pasku di Nasementu" msgstr "Tweede kerstdag" + +#. New Year's Eve. +msgid "Vispu di Aña Nobo" +msgstr "Oudejaarsavond" diff --git a/holidays/locale/pap_CW/LC_MESSAGES/CW.po b/holidays/locale/pap_CW/LC_MESSAGES/CW.po index 039430bd5..24714a2fb 100644 --- a/holidays/locale/pap_CW/LC_MESSAGES/CW.po +++ b/holidays/locale/pap_CW/LC_MESSAGES/CW.po @@ -14,10 +14,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Python Holidays 0.27\n" +"Project-Id-Version: Python Holidays 0.58\n" "POT-Creation-Date: 2023-06-13 16:35+0700\n" -"PO-Revision-Date: \n" -"Last-Translator: PPsyrius \n" +"PO-Revision-Date: 2024-10-05 22:07+0300\n" +"Last-Translator: ~Jhellico \n" "Language-Team: Python Holidays localization team\n" "Language: pap_CW\n" "MIME-Version: 1.0\n" @@ -25,7 +25,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Generated-By: pygettext.py 1.5\n" -"X-Generator: Poedit 3.3.1\n" +"X-Generator: Poedit 3.5\n" #. New Year's Day msgid "Aña Nobo" @@ -78,3 +78,7 @@ msgstr "" #. Second Day of Christmas msgid "Di dos dia di Pasku di Nasementu" msgstr "" + +#. New Year's Eve. +msgid "Vispu di Aña Nobo" +msgstr "" diff --git a/holidays/locale/uk/LC_MESSAGES/CW.po b/holidays/locale/uk/LC_MESSAGES/CW.po index 48cd30852..43c469231 100644 --- a/holidays/locale/uk/LC_MESSAGES/CW.po +++ b/holidays/locale/uk/LC_MESSAGES/CW.po @@ -14,9 +14,9 @@ # msgid "" msgstr "" -"Project-Id-Version: Python Holidays 0.27\n" +"Project-Id-Version: Python Holidays 0.58\n" "POT-Creation-Date: 2023-06-13 16:35+0700\n" -"PO-Revision-Date: \n" +"PO-Revision-Date: 2024-10-05 22:09+0300\n" "Last-Translator: ~Jhellico \n" "Language-Team: Python Holidays localization team\n" "Language: uk\n" @@ -25,7 +25,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n" "Generated-By: pygettext.py 1.5\n" -"X-Generator: Poedit 3.3.1\n" +"X-Generator: Poedit 3.5\n" #. New Year's Day msgid "Aña Nobo" @@ -78,3 +78,7 @@ msgstr "Різдво Христове" #. Second Day of Christmas msgid "Di dos dia di Pasku di Nasementu" msgstr "Другий день Різдва" + +#. New Year's Eve. +msgid "Vispu di Aña Nobo" +msgstr "Переддень Нового року" diff --git a/snapshots/countries/CW_COMMON.json b/snapshots/countries/CW_COMMON.json index 817d7b6c1..9868d1cc2 100644 --- a/snapshots/countries/CW_COMMON.json +++ b/snapshots/countries/CW_COMMON.json @@ -9,6 +9,7 @@ "1954-05-27": "Ascension Day", "1954-12-25": "Christmas Day", "1954-12-26": "Second Day of Christmas", + "1954-12-31": "New Year's Eve", "1955-01-01": "New Year's Day", "1955-02-21": "Carnival Monday", "1955-04-08": "Good Friday", @@ -19,6 +20,7 @@ "1955-05-19": "Ascension Day", "1955-12-25": "Christmas Day", "1955-12-26": "Second Day of Christmas", + "1955-12-31": "New Year's Eve", "1956-01-01": "New Year's Day", "1956-02-13": "Carnival Monday", "1956-03-30": "Good Friday", @@ -29,6 +31,7 @@ "1956-05-10": "Ascension Day", "1956-12-25": "Christmas Day", "1956-12-26": "Second Day of Christmas", + "1956-12-31": "New Year's Eve", "1957-01-01": "New Year's Day", "1957-03-04": "Carnival Monday", "1957-04-19": "Good Friday", @@ -39,6 +42,7 @@ "1957-05-30": "Ascension Day", "1957-12-25": "Christmas Day", "1957-12-26": "Second Day of Christmas", + "1957-12-31": "New Year's Eve", "1958-01-01": "New Year's Day", "1958-02-17": "Carnival Monday", "1958-04-04": "Good Friday", @@ -49,6 +53,7 @@ "1958-05-15": "Ascension Day", "1958-12-25": "Christmas Day", "1958-12-26": "Second Day of Christmas", + "1958-12-31": "New Year's Eve", "1959-01-01": "New Year's Day", "1959-02-09": "Carnival Monday", "1959-03-27": "Good Friday", @@ -59,6 +64,7 @@ "1959-05-07": "Ascension Day", "1959-12-25": "Christmas Day", "1959-12-26": "Second Day of Christmas", + "1959-12-31": "New Year's Eve", "1960-01-01": "New Year's Day", "1960-02-29": "Carnival Monday", "1960-04-15": "Good Friday", @@ -69,6 +75,7 @@ "1960-05-26": "Ascension Day", "1960-12-25": "Christmas Day", "1960-12-26": "Second Day of Christmas", + "1960-12-31": "New Year's Eve", "1961-01-01": "New Year's Day", "1961-02-13": "Carnival Monday", "1961-03-31": "Good Friday", @@ -79,6 +86,7 @@ "1961-05-11": "Ascension Day", "1961-12-25": "Christmas Day", "1961-12-26": "Second Day of Christmas", + "1961-12-31": "New Year's Eve", "1962-01-01": "New Year's Day", "1962-03-05": "Carnival Monday", "1962-04-20": "Good Friday", @@ -89,6 +97,7 @@ "1962-05-31": "Ascension Day", "1962-12-25": "Christmas Day", "1962-12-26": "Second Day of Christmas", + "1962-12-31": "New Year's Eve", "1963-01-01": "New Year's Day", "1963-02-25": "Carnival Monday", "1963-04-12": "Good Friday", @@ -99,6 +108,7 @@ "1963-05-23": "Ascension Day", "1963-12-25": "Christmas Day", "1963-12-26": "Second Day of Christmas", + "1963-12-31": "New Year's Eve", "1964-01-01": "New Year's Day", "1964-02-10": "Carnival Monday", "1964-03-27": "Good Friday", @@ -109,6 +119,7 @@ "1964-05-07": "Ascension Day", "1964-12-25": "Christmas Day", "1964-12-26": "Second Day of Christmas", + "1964-12-31": "New Year's Eve", "1965-01-01": "New Year's Day", "1965-03-01": "Carnival Monday", "1965-04-16": "Good Friday", @@ -119,6 +130,7 @@ "1965-05-27": "Ascension Day", "1965-12-25": "Christmas Day", "1965-12-26": "Second Day of Christmas", + "1965-12-31": "New Year's Eve", "1966-01-01": "New Year's Day", "1966-02-21": "Carnival Monday", "1966-04-08": "Good Friday", @@ -129,6 +141,7 @@ "1966-05-19": "Ascension Day", "1966-12-25": "Christmas Day", "1966-12-26": "Second Day of Christmas", + "1966-12-31": "New Year's Eve", "1967-01-01": "New Year's Day", "1967-02-06": "Carnival Monday", "1967-03-24": "Good Friday", @@ -139,6 +152,7 @@ "1967-05-04": "Ascension Day", "1967-12-25": "Christmas Day", "1967-12-26": "Second Day of Christmas", + "1967-12-31": "New Year's Eve", "1968-01-01": "New Year's Day", "1968-02-26": "Carnival Monday", "1968-04-12": "Good Friday", @@ -149,6 +163,7 @@ "1968-05-23": "Ascension Day", "1968-12-25": "Christmas Day", "1968-12-26": "Second Day of Christmas", + "1968-12-31": "New Year's Eve", "1969-01-01": "New Year's Day", "1969-02-17": "Carnival Monday", "1969-04-04": "Good Friday", @@ -159,6 +174,7 @@ "1969-05-15": "Ascension Day", "1969-12-25": "Christmas Day", "1969-12-26": "Second Day of Christmas", + "1969-12-31": "New Year's Eve", "1970-01-01": "New Year's Day", "1970-02-09": "Carnival Monday", "1970-03-27": "Good Friday", @@ -169,6 +185,7 @@ "1970-05-07": "Ascension Day", "1970-12-25": "Christmas Day", "1970-12-26": "Second Day of Christmas", + "1970-12-31": "New Year's Eve", "1971-01-01": "New Year's Day", "1971-02-22": "Carnival Monday", "1971-04-09": "Good Friday", @@ -179,6 +196,7 @@ "1971-05-20": "Ascension Day", "1971-12-25": "Christmas Day", "1971-12-26": "Second Day of Christmas", + "1971-12-31": "New Year's Eve", "1972-01-01": "New Year's Day", "1972-02-14": "Carnival Monday", "1972-03-31": "Good Friday", @@ -189,6 +207,7 @@ "1972-05-11": "Ascension Day", "1972-12-25": "Christmas Day", "1972-12-26": "Second Day of Christmas", + "1972-12-31": "New Year's Eve", "1973-01-01": "New Year's Day", "1973-03-05": "Carnival Monday", "1973-04-20": "Good Friday", @@ -199,6 +218,7 @@ "1973-05-31": "Ascension Day", "1973-12-25": "Christmas Day", "1973-12-26": "Second Day of Christmas", + "1973-12-31": "New Year's Eve", "1974-01-01": "New Year's Day", "1974-02-25": "Carnival Monday", "1974-04-12": "Good Friday", @@ -209,6 +229,7 @@ "1974-05-23": "Ascension Day", "1974-12-25": "Christmas Day", "1974-12-26": "Second Day of Christmas", + "1974-12-31": "New Year's Eve", "1975-01-01": "New Year's Day", "1975-02-10": "Carnival Monday", "1975-03-28": "Good Friday", @@ -219,6 +240,7 @@ "1975-05-08": "Ascension Day", "1975-12-25": "Christmas Day", "1975-12-26": "Second Day of Christmas", + "1975-12-31": "New Year's Eve", "1976-01-01": "New Year's Day", "1976-03-01": "Carnival Monday", "1976-04-16": "Good Friday", @@ -229,6 +251,7 @@ "1976-05-27": "Ascension Day", "1976-12-25": "Christmas Day", "1976-12-26": "Second Day of Christmas", + "1976-12-31": "New Year's Eve", "1977-01-01": "New Year's Day", "1977-02-21": "Carnival Monday", "1977-04-08": "Good Friday", @@ -239,6 +262,7 @@ "1977-05-19": "Ascension Day", "1977-12-25": "Christmas Day", "1977-12-26": "Second Day of Christmas", + "1977-12-31": "New Year's Eve", "1978-01-01": "New Year's Day", "1978-02-06": "Carnival Monday", "1978-03-24": "Good Friday", @@ -249,6 +273,7 @@ "1978-05-04": "Ascension Day", "1978-12-25": "Christmas Day", "1978-12-26": "Second Day of Christmas", + "1978-12-31": "New Year's Eve", "1979-01-01": "New Year's Day", "1979-02-26": "Carnival Monday", "1979-04-13": "Good Friday", @@ -259,6 +284,7 @@ "1979-05-24": "Ascension Day", "1979-12-25": "Christmas Day", "1979-12-26": "Second Day of Christmas", + "1979-12-31": "New Year's Eve", "1980-01-01": "New Year's Day", "1980-02-18": "Carnival Monday", "1980-04-04": "Good Friday", @@ -269,6 +295,7 @@ "1980-05-15": "Ascension Day", "1980-12-25": "Christmas Day", "1980-12-26": "Second Day of Christmas", + "1980-12-31": "New Year's Eve", "1981-01-01": "New Year's Day", "1981-03-02": "Carnival Monday", "1981-04-17": "Good Friday", @@ -279,6 +306,7 @@ "1981-05-28": "Ascension Day", "1981-12-25": "Christmas Day", "1981-12-26": "Second Day of Christmas", + "1981-12-31": "New Year's Eve", "1982-01-01": "New Year's Day", "1982-02-22": "Carnival Monday", "1982-04-09": "Good Friday", @@ -289,6 +317,7 @@ "1982-05-20": "Ascension Day", "1982-12-25": "Christmas Day", "1982-12-26": "Second Day of Christmas", + "1982-12-31": "New Year's Eve", "1983-01-01": "New Year's Day", "1983-02-14": "Carnival Monday", "1983-04-01": "Good Friday", @@ -299,6 +328,7 @@ "1983-05-12": "Ascension Day", "1983-12-25": "Christmas Day", "1983-12-26": "Second Day of Christmas", + "1983-12-31": "New Year's Eve", "1984-01-01": "New Year's Day", "1984-03-05": "Carnival Monday", "1984-04-20": "Good Friday", @@ -310,6 +340,7 @@ "1984-07-02": "National Anthem and Flag Day", "1984-12-25": "Christmas Day", "1984-12-26": "Second Day of Christmas", + "1984-12-31": "New Year's Eve", "1985-01-01": "New Year's Day", "1985-02-18": "Carnival Monday", "1985-04-05": "Good Friday", @@ -321,6 +352,7 @@ "1985-07-02": "National Anthem and Flag Day", "1985-12-25": "Christmas Day", "1985-12-26": "Second Day of Christmas", + "1985-12-31": "New Year's Eve", "1986-01-01": "New Year's Day", "1986-02-10": "Carnival Monday", "1986-03-28": "Good Friday", @@ -332,6 +364,7 @@ "1986-07-02": "National Anthem and Flag Day", "1986-12-25": "Christmas Day", "1986-12-26": "Second Day of Christmas", + "1986-12-31": "New Year's Eve", "1987-01-01": "New Year's Day", "1987-03-02": "Carnival Monday", "1987-04-17": "Good Friday", @@ -343,6 +376,7 @@ "1987-07-02": "National Anthem and Flag Day", "1987-12-25": "Christmas Day", "1987-12-26": "Second Day of Christmas", + "1987-12-31": "New Year's Eve", "1988-01-01": "New Year's Day", "1988-02-15": "Carnival Monday", "1988-04-01": "Good Friday", @@ -354,6 +388,7 @@ "1988-07-02": "National Anthem and Flag Day", "1988-12-25": "Christmas Day", "1988-12-26": "Second Day of Christmas", + "1988-12-31": "New Year's Eve", "1989-01-01": "New Year's Day", "1989-02-06": "Carnival Monday", "1989-03-24": "Good Friday", @@ -365,6 +400,7 @@ "1989-07-02": "National Anthem and Flag Day", "1989-12-25": "Christmas Day", "1989-12-26": "Second Day of Christmas", + "1989-12-31": "New Year's Eve", "1990-01-01": "New Year's Day", "1990-02-26": "Carnival Monday", "1990-04-13": "Good Friday", @@ -376,6 +412,7 @@ "1990-07-02": "National Anthem and Flag Day", "1990-12-25": "Christmas Day", "1990-12-26": "Second Day of Christmas", + "1990-12-31": "New Year's Eve", "1991-01-01": "New Year's Day", "1991-02-11": "Carnival Monday", "1991-03-29": "Good Friday", @@ -387,6 +424,7 @@ "1991-07-02": "National Anthem and Flag Day", "1991-12-25": "Christmas Day", "1991-12-26": "Second Day of Christmas", + "1991-12-31": "New Year's Eve", "1992-01-01": "New Year's Day", "1992-03-02": "Carnival Monday", "1992-04-17": "Good Friday", @@ -398,6 +436,7 @@ "1992-07-02": "National Anthem and Flag Day", "1992-12-25": "Christmas Day", "1992-12-26": "Second Day of Christmas", + "1992-12-31": "New Year's Eve", "1993-01-01": "New Year's Day", "1993-02-22": "Carnival Monday", "1993-04-09": "Good Friday", @@ -409,6 +448,7 @@ "1993-07-02": "National Anthem and Flag Day", "1993-12-25": "Christmas Day", "1993-12-26": "Second Day of Christmas", + "1993-12-31": "New Year's Eve", "1994-01-01": "New Year's Day", "1994-02-14": "Carnival Monday", "1994-04-01": "Good Friday", @@ -420,6 +460,7 @@ "1994-07-02": "National Anthem and Flag Day", "1994-12-25": "Christmas Day", "1994-12-26": "Second Day of Christmas", + "1994-12-31": "New Year's Eve", "1995-01-01": "New Year's Day", "1995-02-27": "Carnival Monday", "1995-04-14": "Good Friday", @@ -431,6 +472,7 @@ "1995-07-02": "National Anthem and Flag Day", "1995-12-25": "Christmas Day", "1995-12-26": "Second Day of Christmas", + "1995-12-31": "New Year's Eve", "1996-01-01": "New Year's Day", "1996-02-19": "Carnival Monday", "1996-04-05": "Good Friday", @@ -442,6 +484,7 @@ "1996-07-02": "National Anthem and Flag Day", "1996-12-25": "Christmas Day", "1996-12-26": "Second Day of Christmas", + "1996-12-31": "New Year's Eve", "1997-01-01": "New Year's Day", "1997-02-10": "Carnival Monday", "1997-03-28": "Good Friday", @@ -453,6 +496,7 @@ "1997-07-02": "National Anthem and Flag Day", "1997-12-25": "Christmas Day", "1997-12-26": "Second Day of Christmas", + "1997-12-31": "New Year's Eve", "1998-01-01": "New Year's Day", "1998-02-23": "Carnival Monday", "1998-04-10": "Good Friday", @@ -464,6 +508,7 @@ "1998-07-02": "National Anthem and Flag Day", "1998-12-25": "Christmas Day", "1998-12-26": "Second Day of Christmas", + "1998-12-31": "New Year's Eve", "1999-01-01": "New Year's Day", "1999-02-15": "Carnival Monday", "1999-04-02": "Good Friday", @@ -475,6 +520,7 @@ "1999-07-02": "National Anthem and Flag Day", "1999-12-25": "Christmas Day", "1999-12-26": "Second Day of Christmas", + "1999-12-31": "New Year's Eve", "2000-01-01": "New Year's Day", "2000-03-06": "Carnival Monday", "2000-04-21": "Good Friday", @@ -486,6 +532,7 @@ "2000-07-02": "National Anthem and Flag Day", "2000-12-25": "Christmas Day", "2000-12-26": "Second Day of Christmas", + "2000-12-31": "New Year's Eve", "2001-01-01": "New Year's Day", "2001-02-26": "Carnival Monday", "2001-04-13": "Good Friday", @@ -497,6 +544,7 @@ "2001-07-02": "National Anthem and Flag Day", "2001-12-25": "Christmas Day", "2001-12-26": "Second Day of Christmas", + "2001-12-31": "New Year's Eve", "2002-01-01": "New Year's Day", "2002-02-11": "Carnival Monday", "2002-03-29": "Good Friday", @@ -508,6 +556,7 @@ "2002-07-02": "National Anthem and Flag Day", "2002-12-25": "Christmas Day", "2002-12-26": "Second Day of Christmas", + "2002-12-31": "New Year's Eve", "2003-01-01": "New Year's Day", "2003-03-03": "Carnival Monday", "2003-04-18": "Good Friday", @@ -519,6 +568,7 @@ "2003-07-02": "National Anthem and Flag Day", "2003-12-25": "Christmas Day", "2003-12-26": "Second Day of Christmas", + "2003-12-31": "New Year's Eve", "2004-01-01": "New Year's Day", "2004-02-23": "Carnival Monday", "2004-04-09": "Good Friday", @@ -530,6 +580,7 @@ "2004-07-02": "National Anthem and Flag Day", "2004-12-25": "Christmas Day", "2004-12-26": "Second Day of Christmas", + "2004-12-31": "New Year's Eve", "2005-01-01": "New Year's Day", "2005-02-07": "Carnival Monday", "2005-03-25": "Good Friday", @@ -541,6 +592,7 @@ "2005-07-02": "National Anthem and Flag Day", "2005-12-25": "Christmas Day", "2005-12-26": "Second Day of Christmas", + "2005-12-31": "New Year's Eve", "2006-01-01": "New Year's Day", "2006-02-27": "Carnival Monday", "2006-04-14": "Good Friday", @@ -552,6 +604,7 @@ "2006-07-02": "National Anthem and Flag Day", "2006-12-25": "Christmas Day", "2006-12-26": "Second Day of Christmas", + "2006-12-31": "New Year's Eve", "2007-01-01": "New Year's Day", "2007-02-19": "Carnival Monday", "2007-04-06": "Good Friday", @@ -563,6 +616,7 @@ "2007-07-02": "National Anthem and Flag Day", "2007-12-25": "Christmas Day", "2007-12-26": "Second Day of Christmas", + "2007-12-31": "New Year's Eve", "2008-01-01": "New Year's Day", "2008-02-04": "Carnival Monday", "2008-03-21": "Good Friday", @@ -573,6 +627,7 @@ "2008-07-02": "National Anthem and Flag Day", "2008-12-25": "Christmas Day", "2008-12-26": "Second Day of Christmas", + "2008-12-31": "New Year's Eve", "2009-01-01": "New Year's Day", "2009-02-23": "Carnival Monday", "2009-04-10": "Good Friday", @@ -584,6 +639,7 @@ "2009-07-02": "National Anthem and Flag Day", "2009-12-25": "Christmas Day", "2009-12-26": "Second Day of Christmas", + "2009-12-31": "New Year's Eve", "2010-01-01": "New Year's Day", "2010-02-15": "Carnival Monday", "2010-04-02": "Good Friday", @@ -596,6 +652,7 @@ "2010-10-10": "Cura\u00e7ao Day", "2010-12-25": "Christmas Day", "2010-12-26": "Second Day of Christmas", + "2010-12-31": "New Year's Eve", "2011-01-01": "New Year's Day", "2011-03-07": "Carnival Monday", "2011-04-22": "Good Friday", @@ -608,6 +665,7 @@ "2011-10-10": "Cura\u00e7ao Day", "2011-12-25": "Christmas Day", "2011-12-26": "Second Day of Christmas", + "2011-12-31": "New Year's Eve", "2012-01-01": "New Year's Day", "2012-02-20": "Carnival Monday", "2012-04-06": "Good Friday", @@ -620,6 +678,7 @@ "2012-10-10": "Cura\u00e7ao Day", "2012-12-25": "Christmas Day", "2012-12-26": "Second Day of Christmas", + "2012-12-31": "New Year's Eve", "2013-01-01": "New Year's Day", "2013-02-11": "Carnival Monday", "2013-03-29": "Good Friday", @@ -632,6 +691,7 @@ "2013-10-10": "Cura\u00e7ao Day", "2013-12-25": "Christmas Day", "2013-12-26": "Second Day of Christmas", + "2013-12-31": "New Year's Eve", "2014-01-01": "New Year's Day", "2014-03-03": "Carnival Monday", "2014-04-18": "Good Friday", @@ -644,6 +704,7 @@ "2014-10-10": "Cura\u00e7ao Day", "2014-12-25": "Christmas Day", "2014-12-26": "Second Day of Christmas", + "2014-12-31": "New Year's Eve", "2015-01-01": "New Year's Day", "2015-02-16": "Carnival Monday", "2015-04-03": "Good Friday", @@ -656,6 +717,7 @@ "2015-10-10": "Cura\u00e7ao Day", "2015-12-25": "Christmas Day", "2015-12-26": "Second Day of Christmas", + "2015-12-31": "New Year's Eve", "2016-01-01": "New Year's Day", "2016-02-08": "Carnival Monday", "2016-03-25": "Good Friday", @@ -668,6 +730,7 @@ "2016-10-10": "Cura\u00e7ao Day", "2016-12-25": "Christmas Day", "2016-12-26": "Second Day of Christmas", + "2016-12-31": "New Year's Eve", "2017-01-01": "New Year's Day", "2017-02-27": "Carnival Monday", "2017-04-14": "Good Friday", @@ -680,6 +743,7 @@ "2017-10-10": "Cura\u00e7ao Day", "2017-12-25": "Christmas Day", "2017-12-26": "Second Day of Christmas", + "2017-12-31": "New Year's Eve", "2018-01-01": "New Year's Day", "2018-02-12": "Carnival Monday", "2018-03-30": "Good Friday", @@ -692,6 +756,7 @@ "2018-10-10": "Cura\u00e7ao Day", "2018-12-25": "Christmas Day", "2018-12-26": "Second Day of Christmas", + "2018-12-31": "New Year's Eve", "2019-01-01": "New Year's Day", "2019-03-04": "Carnival Monday", "2019-04-19": "Good Friday", @@ -704,6 +769,7 @@ "2019-10-10": "Cura\u00e7ao Day", "2019-12-25": "Christmas Day", "2019-12-26": "Second Day of Christmas", + "2019-12-31": "New Year's Eve", "2020-01-01": "New Year's Day", "2020-02-24": "Carnival Monday", "2020-04-10": "Good Friday", @@ -716,6 +782,7 @@ "2020-10-10": "Cura\u00e7ao Day", "2020-12-25": "Christmas Day", "2020-12-26": "Second Day of Christmas", + "2020-12-31": "New Year's Eve", "2021-01-01": "New Year's Day", "2021-02-15": "Carnival Monday", "2021-04-02": "Good Friday", @@ -728,6 +795,7 @@ "2021-10-10": "Cura\u00e7ao Day", "2021-12-25": "Christmas Day", "2021-12-26": "Second Day of Christmas", + "2021-12-31": "New Year's Eve", "2022-01-01": "New Year's Day", "2022-02-28": "Carnival Monday", "2022-04-15": "Good Friday", @@ -740,6 +808,7 @@ "2022-10-10": "Cura\u00e7ao Day", "2022-12-25": "Christmas Day", "2022-12-26": "Second Day of Christmas", + "2022-12-31": "New Year's Eve", "2023-01-01": "New Year's Day", "2023-02-20": "Carnival Monday", "2023-04-07": "Good Friday", @@ -752,6 +821,7 @@ "2023-10-10": "Cura\u00e7ao Day", "2023-12-25": "Christmas Day", "2023-12-26": "Second Day of Christmas", + "2023-12-31": "New Year's Eve", "2024-01-01": "New Year's Day", "2024-02-12": "Carnival Monday", "2024-03-29": "Good Friday", @@ -764,6 +834,7 @@ "2024-10-10": "Cura\u00e7ao Day", "2024-12-25": "Christmas Day", "2024-12-26": "Second Day of Christmas", + "2024-12-31": "New Year's Eve", "2025-01-01": "New Year's Day", "2025-03-03": "Carnival Monday", "2025-04-18": "Good Friday", @@ -776,6 +847,7 @@ "2025-10-10": "Cura\u00e7ao Day", "2025-12-25": "Christmas Day", "2025-12-26": "Second Day of Christmas", + "2025-12-31": "New Year's Eve", "2026-01-01": "New Year's Day", "2026-02-16": "Carnival Monday", "2026-04-03": "Good Friday", @@ -788,6 +860,7 @@ "2026-10-10": "Cura\u00e7ao Day", "2026-12-25": "Christmas Day", "2026-12-26": "Second Day of Christmas", + "2026-12-31": "New Year's Eve", "2027-01-01": "New Year's Day", "2027-02-08": "Carnival Monday", "2027-03-26": "Good Friday", @@ -800,6 +873,7 @@ "2027-10-10": "Cura\u00e7ao Day", "2027-12-25": "Christmas Day", "2027-12-26": "Second Day of Christmas", + "2027-12-31": "New Year's Eve", "2028-01-01": "New Year's Day", "2028-02-28": "Carnival Monday", "2028-04-14": "Good Friday", @@ -812,6 +886,7 @@ "2028-10-10": "Cura\u00e7ao Day", "2028-12-25": "Christmas Day", "2028-12-26": "Second Day of Christmas", + "2028-12-31": "New Year's Eve", "2029-01-01": "New Year's Day", "2029-02-12": "Carnival Monday", "2029-03-30": "Good Friday", @@ -824,6 +899,7 @@ "2029-10-10": "Cura\u00e7ao Day", "2029-12-25": "Christmas Day", "2029-12-26": "Second Day of Christmas", + "2029-12-31": "New Year's Eve", "2030-01-01": "New Year's Day", "2030-03-04": "Carnival Monday", "2030-04-19": "Good Friday", @@ -836,6 +912,7 @@ "2030-10-10": "Cura\u00e7ao Day", "2030-12-25": "Christmas Day", "2030-12-26": "Second Day of Christmas", + "2030-12-31": "New Year's Eve", "2031-01-01": "New Year's Day", "2031-02-24": "Carnival Monday", "2031-04-11": "Good Friday", @@ -848,6 +925,7 @@ "2031-10-10": "Cura\u00e7ao Day", "2031-12-25": "Christmas Day", "2031-12-26": "Second Day of Christmas", + "2031-12-31": "New Year's Eve", "2032-01-01": "New Year's Day", "2032-02-09": "Carnival Monday", "2032-03-26": "Good Friday", @@ -860,6 +938,7 @@ "2032-10-10": "Cura\u00e7ao Day", "2032-12-25": "Christmas Day", "2032-12-26": "Second Day of Christmas", + "2032-12-31": "New Year's Eve", "2033-01-01": "New Year's Day", "2033-02-28": "Carnival Monday", "2033-04-15": "Good Friday", @@ -872,6 +951,7 @@ "2033-10-10": "Cura\u00e7ao Day", "2033-12-25": "Christmas Day", "2033-12-26": "Second Day of Christmas", + "2033-12-31": "New Year's Eve", "2034-01-01": "New Year's Day", "2034-02-20": "Carnival Monday", "2034-04-07": "Good Friday", @@ -884,6 +964,7 @@ "2034-10-10": "Cura\u00e7ao Day", "2034-12-25": "Christmas Day", "2034-12-26": "Second Day of Christmas", + "2034-12-31": "New Year's Eve", "2035-01-01": "New Year's Day", "2035-02-05": "Carnival Monday", "2035-03-23": "Good Friday", @@ -896,6 +977,7 @@ "2035-10-10": "Cura\u00e7ao Day", "2035-12-25": "Christmas Day", "2035-12-26": "Second Day of Christmas", + "2035-12-31": "New Year's Eve", "2036-01-01": "New Year's Day", "2036-02-25": "Carnival Monday", "2036-04-11": "Good Friday", @@ -908,6 +990,7 @@ "2036-10-10": "Cura\u00e7ao Day", "2036-12-25": "Christmas Day", "2036-12-26": "Second Day of Christmas", + "2036-12-31": "New Year's Eve", "2037-01-01": "New Year's Day", "2037-02-16": "Carnival Monday", "2037-04-03": "Good Friday", @@ -920,6 +1003,7 @@ "2037-10-10": "Cura\u00e7ao Day", "2037-12-25": "Christmas Day", "2037-12-26": "Second Day of Christmas", + "2037-12-31": "New Year's Eve", "2038-01-01": "New Year's Day", "2038-03-08": "Carnival Monday", "2038-04-23": "Good Friday", @@ -932,6 +1016,7 @@ "2038-10-10": "Cura\u00e7ao Day", "2038-12-25": "Christmas Day", "2038-12-26": "Second Day of Christmas", + "2038-12-31": "New Year's Eve", "2039-01-01": "New Year's Day", "2039-02-21": "Carnival Monday", "2039-04-08": "Good Friday", @@ -944,6 +1029,7 @@ "2039-10-10": "Cura\u00e7ao Day", "2039-12-25": "Christmas Day", "2039-12-26": "Second Day of Christmas", + "2039-12-31": "New Year's Eve", "2040-01-01": "New Year's Day", "2040-02-13": "Carnival Monday", "2040-03-30": "Good Friday", @@ -956,6 +1042,7 @@ "2040-10-10": "Cura\u00e7ao Day", "2040-12-25": "Christmas Day", "2040-12-26": "Second Day of Christmas", + "2040-12-31": "New Year's Eve", "2041-01-01": "New Year's Day", "2041-03-04": "Carnival Monday", "2041-04-19": "Good Friday", @@ -968,6 +1055,7 @@ "2041-10-10": "Cura\u00e7ao Day", "2041-12-25": "Christmas Day", "2041-12-26": "Second Day of Christmas", + "2041-12-31": "New Year's Eve", "2042-01-01": "New Year's Day", "2042-02-17": "Carnival Monday", "2042-04-04": "Good Friday", @@ -980,6 +1068,7 @@ "2042-10-10": "Cura\u00e7ao Day", "2042-12-25": "Christmas Day", "2042-12-26": "Second Day of Christmas", + "2042-12-31": "New Year's Eve", "2043-01-01": "New Year's Day", "2043-02-09": "Carnival Monday", "2043-03-27": "Good Friday", @@ -992,6 +1081,7 @@ "2043-10-10": "Cura\u00e7ao Day", "2043-12-25": "Christmas Day", "2043-12-26": "Second Day of Christmas", + "2043-12-31": "New Year's Eve", "2044-01-01": "New Year's Day", "2044-02-29": "Carnival Monday", "2044-04-15": "Good Friday", @@ -1004,6 +1094,7 @@ "2044-10-10": "Cura\u00e7ao Day", "2044-12-25": "Christmas Day", "2044-12-26": "Second Day of Christmas", + "2044-12-31": "New Year's Eve", "2045-01-01": "New Year's Day", "2045-02-20": "Carnival Monday", "2045-04-07": "Good Friday", @@ -1016,6 +1107,7 @@ "2045-10-10": "Cura\u00e7ao Day", "2045-12-25": "Christmas Day", "2045-12-26": "Second Day of Christmas", + "2045-12-31": "New Year's Eve", "2046-01-01": "New Year's Day", "2046-02-05": "Carnival Monday", "2046-03-23": "Good Friday", @@ -1028,6 +1120,7 @@ "2046-10-10": "Cura\u00e7ao Day", "2046-12-25": "Christmas Day", "2046-12-26": "Second Day of Christmas", + "2046-12-31": "New Year's Eve", "2047-01-01": "New Year's Day", "2047-02-25": "Carnival Monday", "2047-04-12": "Good Friday", @@ -1040,6 +1133,7 @@ "2047-10-10": "Cura\u00e7ao Day", "2047-12-25": "Christmas Day", "2047-12-26": "Second Day of Christmas", + "2047-12-31": "New Year's Eve", "2048-01-01": "New Year's Day", "2048-02-17": "Carnival Monday", "2048-04-03": "Good Friday", @@ -1052,6 +1146,7 @@ "2048-10-10": "Cura\u00e7ao Day", "2048-12-25": "Christmas Day", "2048-12-26": "Second Day of Christmas", + "2048-12-31": "New Year's Eve", "2049-01-01": "New Year's Day", "2049-03-01": "Carnival Monday", "2049-04-16": "Good Friday", @@ -1064,6 +1159,7 @@ "2049-10-10": "Cura\u00e7ao Day", "2049-12-25": "Christmas Day", "2049-12-26": "Second Day of Christmas", + "2049-12-31": "New Year's Eve", "2050-01-01": "New Year's Day", "2050-02-21": "Carnival Monday", "2050-04-08": "Good Friday", @@ -1075,5 +1171,6 @@ "2050-07-02": "National Anthem and Flag Day", "2050-10-10": "Cura\u00e7ao Day", "2050-12-25": "Christmas Day", - "2050-12-26": "Second Day of Christmas" + "2050-12-26": "Second Day of Christmas", + "2050-12-31": "New Year's Eve" } diff --git a/tests/countries/test_curacao.py b/tests/countries/test_curacao.py index 09fb145cc..4db96c177 100644 --- a/tests/countries/test_curacao.py +++ b/tests/countries/test_curacao.py @@ -12,6 +12,7 @@ from unittest import TestCase +from holidays.constants import HALF_DAY, PUBLIC from holidays.countries.curacao import Curacao, CW, CUW from tests.common import CommonCountryTests @@ -19,13 +20,13 @@ class TestCuracao(CommonCountryTests, TestCase): @classmethod def setUpClass(cls): - super().setUpClass(Curacao, years=range(1954, 2077)) + super().setUpClass(Curacao, years=range(1954, 2050)) def test_country_aliases(self): self.assertAliases(Curacao, CW, CUW) def test_no_holidays(self): - self.assertNoHolidays(Curacao(years=1953)) + self.assertNoHolidays(Curacao(categories=(HALF_DAY, PUBLIC), years=1953)) def test_2016(self): self.assertHolidays( @@ -44,6 +45,12 @@ def test_2016(self): ("2016-12-26", "Di dos dia di Pasku di Nasementu"), ) + def test_2016_half_day(self): + self.assertHolidays( + Curacao(categories=HALF_DAY, years=2016), + ("2016-12-31", "Vispu di Aña Nobo"), + ) + def test_queens_day(self): name = "Dia di la Reina" self.assertHolidayName( @@ -116,13 +123,13 @@ def test_labor_day(self): def test_anthem_and_flag_day(self): name = "Dia di Himno i Bandera" - self.assertNoHolidayName(name, 1983) - self.assertHolidayName(name, (f"{year}-07-02" for year in range(1984, 2077))) + self.assertNoHolidayName(name, range(1954, 1983)) + self.assertHolidayName(name, (f"{year}-07-02" for year in range(1984, 2050))) def test_curacao_day(self): name = "Dia di Pais Kòrsou" - self.assertNoHolidayName(name, 2009) - self.assertHolidayName(name, (f"{year}-10-10" for year in range(2010, 2077))) + self.assertNoHolidayName(name, range(1954, 2009)) + self.assertHolidayName(name, (f"{year}-10-10" for year in range(2010, 2050))) def test_l10n_default(self): self.assertLocalizedHolidays( @@ -138,6 +145,7 @@ def test_l10n_default(self): ("2023-10-10", "Dia di Pais Kòrsou"), ("2023-12-25", "Pasku di Nasementu"), ("2023-12-26", "Di dos dia di Pasku di Nasementu"), + ("2023-12-31", "Vispu di Aña Nobo"), ) def test_l10n_en_us(self): @@ -155,6 +163,7 @@ def test_l10n_en_us(self): ("2023-10-10", "Curaçao Day"), ("2023-12-25", "Christmas Day"), ("2023-12-26", "Second Day of Christmas"), + ("2023-12-31", "New Year's Eve"), ) def test_l10n_nl(self): @@ -172,6 +181,7 @@ def test_l10n_nl(self): ("2023-10-10", "Dag van Land Curaçao"), ("2023-12-25", "Kerst"), ("2023-12-26", "Tweede kerstdag"), + ("2023-12-31", "Oudejaarsavond"), ) def test_l10n_uk(self): @@ -189,4 +199,5 @@ def test_l10n_uk(self): ("2023-10-10", "День Кюрасао"), ("2023-12-25", "Різдво Христове"), ("2023-12-26", "Другий день Різдва"), + ("2023-12-31", "Переддень Нового року"), )