Skip to content

Commit

Permalink
Update ECB 2015 test
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Jan 6, 2024
1 parent ae441b3 commit 2c2f946
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions tests/financial/test_european_central_bank.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,13 @@ def test_26_december_day(self):
self.assertIn(dt, self.holidays)
self.assertNotIn(dt + td(days=+1), self.holidays)

def test_all_holidays_present(self):
tar_2015 = EuropeanCentralBank(years=[2015])
all_holidays = (
"New Year's Day",
"Good Friday",
"Easter Monday",
"1 May (Labour Day)",
"Christmas Day",
"26 December",
def test_2015(self):
self.assertHolidays(
EuropeanCentralBank(years=2015),
("2015-01-01", "New Year's Day"),
("2015-04-03", "Good Friday"),
("2015-04-06", "Easter Monday"),
("2015-05-01", "1 May (Labour Day)"),
("2015-12-25", "Christmas Day"),
("2015-12-26", "26 December"),
)
for holiday in all_holidays:
self.assertIn(holiday, tar_2015.values())

0 comments on commit 2c2f946

Please sign in to comment.