Unrelated: moving deduplicate HK holidays to HongKongTest class
refs #496
This commit is contained in:
parent
1916738795
commit
f9593d3da5
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in New Issue