Skip to content

Commit

Permalink
Merge branch 'jusce17-us_juneteenth_holiday' into beta
Browse files Browse the repository at this point in the history
dr-prodigy committed Jul 18, 2021

Verified

This commit was signed with the committer’s verified signature.
2 parents 3b5e338 + a2a754c commit 0ae018c
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ Released ????, ????
- Support for Botswana #477 (pietervdw115)
- Poland fix #464 (m-ganko)
- Singapore updates for 2022 #456 (mborsetti)
- US updates #474 (ChristianAlexander)
- US updates #474, #488 (ChristianAlexander, jusce17)
- NG updates #486 (pietervdw115)
- UK updates #487 (orrock, dr-p)
- .gitignore fix #462 (TheLastProject)
4 changes: 4 additions & 0 deletions holidays/countries/united_states.py
Original file line number Diff line number Diff line change
@@ -361,6 +361,10 @@ def _populate(self, year):
elif year >= 1888:
self[date(year, MAY, 30)] = "Memorial Day"

# Juneteenth Day
if year > 2020:
self[date(year, JUN, 19)] = "Juneteenth National Independence Day"

# Jefferson Davis Birthday
name = "Jefferson Davis Birthday"
if self.state == "AL" and year >= 1890:
7 changes: 7 additions & 0 deletions test/countries/test_united_states.py
Original file line number Diff line number Diff line change
@@ -36,6 +36,13 @@ def test_new_years(self):
self.assertNotIn(dt + relativedelta(days=-1), self.holidays)
self.assertNotIn(dt + relativedelta(days=+1), self.holidays)

def test_Juneteenth_day(self):

for year in range(2010, 2020):
self.assertNotIn(date(year, 6, 19), self.holidays)
for year in range(2021, 2030):
self.assertIn(date(year, 6, 19), self.holidays)

def test_epiphany(self):
pr_holidays = holidays.US(state="PR")
for year in range(2010, 2021):

0 comments on commit 0ae018c

Please sign in to comment.