Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update US tests: Day After Thanksgiving #1742

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions tests/countries/test_united_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -1689,7 +1689,7 @@ def test_discovery_day(self):
f"{name} (observed)", UnitedStates(subdiv="PR", observed=False), obs_dt
)

def test_after_thanksgiving_day(self):
def test_day_after_thanksgiving(self):
dt = (
"2010-11-26",
"2011-11-25",
Expand All @@ -1714,19 +1714,17 @@ def test_after_thanksgiving_day(self):
("MD", "American Indian Heritage Day", 2008),
("NC", "Day After Thanksgiving", 1975),
("NH", "Day After Thanksgiving", 1975),
("NM", "Presidents' Day", -1),
("NV", "Family Day", -1),
("NM", "Presidents' Day", None),
("NV", "Family Day", None),
("OK", "Day After Thanksgiving", 1975),
("PA", "Day After Thanksgiving", -1),
("PA", "Day After Thanksgiving", None),
("TX", "Friday After Thanksgiving", 1975),
("WV", "Day After Thanksgiving", 1975),
):
self.assertNoHolidayName(name)
self.assertHolidayName(name, self.state_hols[subdiv], dt)
self.assertHolidayName(
name, self.state_hols[subdiv], range(start_year if start_year > 0 else 1865, 2050)
)
if start_year > 0:
self.assertHolidayName(name, self.state_hols[subdiv], range(start_year or 1865, 2050))
if start_year:
self.assertNoHolidayName(name, self.state_hols[subdiv], range(1865, start_year))

def test_robert_lee_birthday(self):
Expand Down