-
Notifications
You must be signed in to change notification settings - Fork 442
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 holidays: add CO Cesar Chavez Day #1629
Conversation
^ I'm not in any position to follow that code smell suggestion and make a constant for the holiday. Seems there's multiple places in the same file where the same raw string is used multiple times (e.g. "Lincoln's Birthday"), so clearly this isn't an actual "problem". Hopefully the CI failure doesn't prevent this from being reviewed and adopted. |
Pull Request Test Coverage Report for Build 7429053155
💛 - Coveralls |
Yeah - ignore that one for now; the actual def test_cesar_chavez_day(self):
name = "Cesar Chavez Day"
self.assertNoHolidayName(name)
self.assertHolidayName(
name, self.state_hols["CA"], (f"{year}-03-31" for year in range(1995, 2050))
)
self.assertNoHolidayName(name, self.state_hols["CA"], range(1865, 1995))
obs_dt = (
"1996-04-01",
"2002-04-01",
"2013-04-01",
"2019-04-01",
)
self.assertHolidayName(f"{name} (Observed)", self.state_hols["CA"], obs_dt)
self.assertNoNonObservedHolidayName(
f"{name} (Observed)", UnitedStates(subdiv="CA", observed=False), obs_dt
)
self.assertHolidayName(
name, self.state_hols["CO"], (f"{year}-03-31" for year in range(2001, 2050))
)
self.assertNoHolidayName(name, self.state_hols["CO"], range(1865, 2001))
self.assertHolidayName(
name, self.state_hols["TX"], (f"{year}-03-31" for year in range(2000, 2050))
)
self.assertNoHolidayName(name, self.state_hols["TX"], range(1865, 2000)) |
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 1 New issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slick and tidy, thanks for the PR @nwithan8!
Proposed change
Source:
Type of change
Checklist
make pre-commit
, it didn't generate any changesmake test
, all tests passed locally