Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: ~Jhellico <[email protected]>
  • Loading branch information
kasya and KJhellico authored Jul 28, 2024
1 parent 9b55aac commit 5494437
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion holidays/countries/mauritania.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _populate(self, year):
self._add_labor_day("Labor Day")

# Africa Day.
self._add_holiday_may_25("Africa Day")
self._add_africa_day("Africa Day")

# Independence Day.
if year >= 1960:
Expand Down
4 changes: 3 additions & 1 deletion tests/countries/test_mauritania.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def test_africa_day(self):
self.assertHolidayName("Africa Day", (f"{year}-05-25" for year in range(1950, 2050)))

def test_independence_day(self):
self.assertHolidayName("Independence Day", (f"{year}-11-28" for year in range(1960, 2050)))
name = "Independence Day"
self.assertHolidayName(name, (f"{year}-11-28" for year in range(1960, 2050)))
self.assertNoHolidayName(name, range(1950, 1960))

def test_2023(self):
self.assertHolidays(
Expand Down

0 comments on commit 5494437

Please sign in to comment.