diff --git a/README.rst b/README.rst index ce03aa542..805b3944d 100644 --- a/README.rst +++ b/README.rst @@ -237,6 +237,9 @@ subdivisions are available: * - France - FR - Departments: Alsace-Moselle, Guadeloupe, Guyane, La Réunion, Martinique, Mayotte, Métropole, Nouvelle-Calédonie, Polynésie Française, Saint-Barthélémy, Saint-Martin, Wallis-et-Futuna + * - French Guiana + - GF + - None; Can also be loaded as country FR, subdivision Guyane * - French Polynesia - PF - None; Can also be loaded as country FR, subdivision Polynésie Française @@ -258,9 +261,6 @@ subdivisions are available: * - Guam - GU - None; Can also be loaded as country US, subdivision GU - * - Guyana - - GY - - None; Can also be loaded as country FR, subdivision Guyane * - Honduras - HN - None diff --git a/holidays/countries/__init__.py b/holidays/countries/__init__.py index fec6096ad..2e438cc9e 100644 --- a/holidays/countries/__init__.py +++ b/holidays/countries/__init__.py @@ -48,6 +48,7 @@ from .ethiopia import Ethiopia, ET, ETH from .finland import Finland, FI, FIN from .france import France, FR, FRA +from .french_guiana import FrenchGuiana, GF, GUF from .french_polynesia import FrenchPolynesia, PF, PYF from .french_southern_territories import FrenchSouthernTerritories, TF, ATF from .georgia import Georgia, GE, GEO @@ -55,7 +56,6 @@ from .greece import Greece, GR, GRC from .guadeloupe import Guadeloupe, GP, GLP from .guam import Guam, GU, GUM, HolidaysGU -from .guyana import Guyana, GY, GUY from .honduras import Honduras, HN, HND from .hongkong import HongKong, HK, HKG from .hungary import Hungary, HU, HUN diff --git a/holidays/countries/guyana.py b/holidays/countries/french_guiana.py similarity index 90% rename from holidays/countries/guyana.py rename to holidays/countries/french_guiana.py index 0c6a2caf3..b6db1c8ea 100644 --- a/holidays/countries/guyana.py +++ b/holidays/countries/french_guiana.py @@ -12,12 +12,12 @@ from holidays.countries.france import FR -class Guyana(FR): +class FrenchGuiana(FR): # Alias of a FR subdivision that is also officially assigned its own # country code in ISO 3166-1. See # https://en.wikipedia.org/wiki/ISO_3166-2:FR#Subdivisions_included_in_ISO_3166-1 - country = "GY" + country = "GF" subdivisions = [] def _populate(self, year: int) -> None: @@ -25,9 +25,9 @@ def _populate(self, year: int) -> None: super()._populate(year) -class GY(Guyana): +class GF(FrenchGuiana): pass -class GUY(Guyana): +class GUF(FrenchGuiana): pass diff --git a/tests/countries/test_guyana.py b/tests/countries/test_french_guiana.py similarity index 85% rename from tests/countries/test_guyana.py rename to tests/countries/test_french_guiana.py index b8cc8358b..54b9f2d0b 100644 --- a/tests/countries/test_guyana.py +++ b/tests/countries/test_french_guiana.py @@ -9,17 +9,17 @@ # Website: https://github.com/dr-prodigy/python-holidays # License: MIT (see LICENSE file) -from holidays.countries.guyana import Guyana, GY, GUY +from holidays.countries.french_guiana import FrenchGuiana, GF, GUF from tests.common import TestCase -class TestGuyana(TestCase): +class TestFrenchGuiana(TestCase): @classmethod def setUpClass(cls): - super().setUpClass(Guyana) + super().setUpClass(FrenchGuiana) def test_country_aliases(self): - self.assertCountryAliases(Guyana, GY, GUY) + self.assertCountryAliases(FrenchGuiana, GF, GUF) def test_2022(self): self.assertHolidays(