From f9593d3da5a21c307eaec970440586c87fb562d5 Mon Sep 17 00:00:00 2001 From: Bruno Bord Date: Fri, 22 May 2020 11:44:58 +0200 Subject: [PATCH] Unrelated: moving deduplicate HK holidays to HongKongTest class refs #496 --- workalendar/tests/test_asia.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/workalendar/tests/test_asia.py b/workalendar/tests/test_asia.py index 3380515..2b5352f 100644 --- a/workalendar/tests/test_asia.py +++ b/workalendar/tests/test_asia.py @@ -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):