From 2c2f946bb1772970d53747221235798421354078 Mon Sep 17 00:00:00 2001 From: Arkadii Yakovets Date: Sat, 6 Jan 2024 14:41:35 -0800 Subject: [PATCH] Update ECB 2015 test --- tests/financial/test_european_central_bank.py | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/tests/financial/test_european_central_bank.py b/tests/financial/test_european_central_bank.py index 289bacd84..5df205377 100644 --- a/tests/financial/test_european_central_bank.py +++ b/tests/financial/test_european_central_bank.py @@ -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())