Unrelated: moving deduplicate HK holidays to HongKongTest class

refs #496
This commit is contained in:
Bruno Bord 2020-05-22 11:44:58 +02:00
parent 1916738795
commit f9593d3da5
No known key found for this signature in database
GPG Key ID: 9499EA6788BF80A1
1 changed files with 6 additions and 6 deletions

View File

@ -244,6 +244,12 @@ class HongKongTest(GenericCalendarTest):
date(2020, 2, 12)
)
def test_no_duplicate_days(self):
holidays = self.cal.holidays(2021)
labels = list(day[1] for day in holidays)
labels_dedup = list(set(labels))
assert sorted(labels) == sorted(labels_dedup)
class HongKongBankTest(HongKongTest):
cal_class = HongKongBank
@ -257,12 +263,6 @@ class HongKongBankTest(HongKongTest):
date(2020, 2, 13)
)
def test_no_duplicate_days(self):
holidays = self.cal.holidays(2021)
labels = list(day[1] for day in holidays)
labels_dedup = list(set(labels))
assert sorted(labels) == sorted(labels_dedup)
class JapanTest(GenericCalendarTest):