diff --git a/holidays/locale/be/LC_MESSAGES/BY.po b/holidays/locale/be/LC_MESSAGES/BY.po index fb032c13c..f4761d283 100644 --- a/holidays/locale/be/LC_MESSAGES/BY.po +++ b/holidays/locale/be/LC_MESSAGES/BY.po @@ -16,7 +16,7 @@ msgid "" msgstr "" "Project-Id-Version: Holidays 0.64\n" "POT-Creation-Date: 2023-02-15 20:06-0800\n" -"PO-Revision-Date: 2024-12-25 14:08+0700\n" +"PO-Revision-Date: 2024-12-26 19:18+0700\n" "Last-Translator: PPsyrius \n" "Language-Team: Holidays Localization Team\n" "Language: be\n" diff --git a/holidays/locale/en_US/LC_MESSAGES/BY.po b/holidays/locale/en_US/LC_MESSAGES/BY.po index b783995df..ed702ce59 100644 --- a/holidays/locale/en_US/LC_MESSAGES/BY.po +++ b/holidays/locale/en_US/LC_MESSAGES/BY.po @@ -16,7 +16,7 @@ msgid "" msgstr "" "Project-Id-Version: Holidays 0.64\n" "POT-Creation-Date: 2023-02-15 20:06-0800\n" -"PO-Revision-Date: 2024-12-25 14:08+0700\n" +"PO-Revision-Date: 2024-12-26 19:18+0700\n" "Last-Translator: PPsyrius \n" "Language-Team: Holidays Localization Team\n" "Language: en_US\n" diff --git a/holidays/locale/ru/LC_MESSAGES/BY.po b/holidays/locale/ru/LC_MESSAGES/BY.po index 24203506d..bb144871b 100644 --- a/holidays/locale/ru/LC_MESSAGES/BY.po +++ b/holidays/locale/ru/LC_MESSAGES/BY.po @@ -16,7 +16,7 @@ msgid "" msgstr "" "Project-Id-Version: Holidays 0.64\n" "POT-Creation-Date: 2024-12-24 11:39+0700\n" -"PO-Revision-Date: 2024-12-25 14:08+0700\n" +"PO-Revision-Date: 2024-12-26 19:18+0700\n" "Last-Translator: PPsyrius \n" "Language-Team: Holidays Localization Team\n" "Language: ru\n" diff --git a/holidays/locale/th/LC_MESSAGES/BY.po b/holidays/locale/th/LC_MESSAGES/BY.po index e8b707013..098c7875e 100644 --- a/holidays/locale/th/LC_MESSAGES/BY.po +++ b/holidays/locale/th/LC_MESSAGES/BY.po @@ -16,7 +16,7 @@ msgid "" msgstr "" "Project-Id-Version: Holidays 0.64\n" "POT-Creation-Date: 2024-12-24 11:39+0700\n" -"PO-Revision-Date: 2024-12-25 14:08+0700\n" +"PO-Revision-Date: 2024-12-26 19:18+0700\n" "Last-Translator: PPsyrius \n" "Language-Team: Holidays Localization Team\n" "Language: th\n" diff --git a/tests/countries/test_belarus.py b/tests/countries/test_belarus.py index 1a3eef795..2c39b1a38 100644 --- a/tests/countries/test_belarus.py +++ b/tests/countries/test_belarus.py @@ -20,7 +20,9 @@ class TestBelarus(CommonCountryTests, TestCase): @classmethod def setUpClass(cls): - super().setUpClass(Belarus) + years = range(1991, 2050) + super().setUpClass(Belarus, years=years) + cls.workdays = Belarus(categories=WORKDAY, years=years) def test_country_aliases(self): self.assertAliases(Belarus, BY, BLR) @@ -54,9 +56,10 @@ def test_public_2018(self): def test_constitution_day(self): name = "Дзень Канстытуцыі" - workdays = Belarus(categories=WORKDAY, years=range(1991, 2050)) - self.assertHolidayName(name, workdays, (f"{year}-03-15" for year in range(1999, 2050))) - self.assertNoHolidayName(name, workdays, range(1991, 1995)) + self.assertHolidayName( + name, self.workdays, (f"{year}-03-15" for year in range(1999, 2050)) + ) + self.assertNoHolidayName(name, self.workdays, range(1991, 1995)) self.assertHolidayName(name, (f"{year}-03-15" for year in range(1995, 1999))) self.assertNoHolidayName( name, @@ -67,9 +70,10 @@ def test_constitution_day(self): def test_day_of_unity_of_the_peoples_of_belarus_and_russia(self): name = "Дзень яднання народаў Беларусі і Расіі" - workdays = Belarus(categories=WORKDAY, years=range(1991, 2050)) - self.assertHolidayName(name, workdays, (f"{year}-04-02" for year in range(1996, 2050))) - self.assertNoHolidayName(name, workdays, range(1991, 1996)) + self.assertHolidayName( + name, self.workdays, (f"{year}-04-02" for year in range(1996, 2050)) + ) + self.assertNoHolidayName(name, self.workdays, range(1991, 1996)) self.assertNoHolidayName(name) def test_national_symbol_day(self): @@ -96,9 +100,8 @@ def test_national_symbol_day(self): "2029-05-13", "2030-05-12", ) - workdays = Belarus(categories=WORKDAY, years=range(1991, 2050)) - self.assertHolidayName(name, workdays, dt) - self.assertNoHolidayName(name, workdays, range(1991, 1998)) + self.assertHolidayName(name, self.workdays, dt) + self.assertNoHolidayName(name, self.workdays, range(1991, 1998)) self.assertNoHolidayName(name) def test_day_of_the_republic(self): @@ -112,9 +115,10 @@ def test_day_of_the_republic(self): def test_day_of_peoples_unity(self): name = "Дзень народнага адзінства" - workdays = Belarus(categories=WORKDAY, years=range(1991, 2050)) - self.assertHolidayName(name, workdays, (f"{year}-09-17" for year in range(2021, 2050))) - self.assertNoHolidayName(name, workdays, range(1991, 2021)) + self.assertHolidayName( + name, self.workdays, (f"{year}-09-17" for year in range(2021, 2050)) + ) + self.assertNoHolidayName(name, self.workdays, range(1991, 2021)) self.assertNoHolidayName(name) def test_new_years_day(self): @@ -127,8 +131,9 @@ def test_new_years_day(self): def test_day_of_fatherland_defenders(self): name = "Дзень абаронцаў Айчыны і Узброеных Сіл Рэспублікі Беларусь" - workdays = Belarus(categories=WORKDAY, years=range(1991, 2050)) - self.assertHolidayName(name, workdays, (f"{year}-02-23" for year in range(1991, 2050))) + self.assertHolidayName( + name, self.workdays, (f"{year}-02-23" for year in range(1991, 2050)) + ) self.assertNoHolidayName(name) def test_october_revolution_day(self): @@ -162,9 +167,8 @@ def test_catholic_easter(self): "2029-04-01", "2030-04-21", ) - workdays = Belarus(categories=WORKDAY, years=range(1991, 2050)) - self.assertHolidayName(name, workdays, dt) - self.assertNoHolidayName(name, workdays, range(1991, 1998)) + self.assertHolidayName(name, self.workdays, dt) + self.assertNoHolidayName(name, self.workdays, range(1991, 1998)) self.assertNoHolidayName(name, 1991, range(1998, 2050)) def test_orthodox_easter(self): @@ -192,9 +196,8 @@ def test_orthodox_easter(self): "2029-04-08", "2030-04-28", ) - workdays = Belarus(categories=WORKDAY, years=range(1991, 2050)) - self.assertHolidayName(name, workdays, dt) - self.assertNoHolidayName(name, workdays, range(1991, 1998)) + self.assertHolidayName(name, self.workdays, dt) + self.assertNoHolidayName(name, self.workdays, range(1991, 1998)) self.assertNoHolidayName(name, 1991, range(1998, 2050)) def test_radunitsa(self): @@ -225,9 +228,10 @@ def test_radunitsa(self): def test_dzyady(self): name = "Дзень памяці" - workdays = Belarus(categories=WORKDAY, years=range(1991, 2050)) - self.assertHolidayName(name, workdays, (f"{year}-11-02" for year in range(1998, 2050))) - self.assertNoHolidayName(name, workdays, range(1991, 1998)) + self.assertHolidayName( + name, self.workdays, (f"{year}-11-02" for year in range(1998, 2050)) + ) + self.assertNoHolidayName(name, self.workdays, range(1991, 1998)) self.assertHolidayName(name, (f"{year}-11-02" for year in range(1992, 1998))) self.assertNoHolidayName(name, 1991, range(1998, 2050))