Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setUp(self):
self.holidays = holidays.AU(observed=True)
self.state_hols = dict((state, holidays.AU(observed=True, prov=state))
for state in holidays.AU.PROVINCES)
def setUp(self):
self.holidays = holidays.AU(observed=True)
self.state_hols = dict((state, holidays.AU(observed=True, prov=state))
for state in holidays.AU.PROVINCES)
def test_all_holidays_present(self):
au_2015 = sum(holidays.AU(years=[2015], prov=p)
for p in holidays.AU.PROVINCES)
holidays_in_2015 = sum((au_2015.get_list(key) for key in au_2015), [])
all_holidays = ["New Year's Day",
"Australia Day",
"Adelaide Cup",
"Canberra Day",
"Good Friday",
"Easter Saturday",
"Easter Sunday",
"Easter Monday",
"Anzac Day",
"Queen's Birthday",
"Western Australia Day",
"Family & Community Day",
"Labour Day",
"Eight Hours Day",
"May Day",
def test_all_holidays_present(self):
au_2015 = sum(holidays.AU(years=[2015], prov=p)
for p in holidays.AU.PROVINCES)
holidays_in_2015 = sum((au_2015.get_list(key) for key in au_2015), [])
all_holidays = ["New Year's Day",
"Australia Day",
"Adelaide Cup",
"Canberra Day",
"Good Friday",
"Easter Saturday",
"Easter Sunday",
"Easter Monday",
"Anzac Day",
"Queen's Birthday",
"Western Australia Day",
"Family & Community Day",
"Labour Day",
"Eight Hours Day",