Skip to content

Commit

Permalink
Fix Denmark, remove observances
Browse files Browse the repository at this point in the history
According to the following sources:

https://www.timeanddate.com/holidays/denmark/2019
https://publicholidays.dk/2019-dates/

Palm Sunday, Constitution Day, Christmas Eve and New Year's Eve are Observances and not non working days
This seems to be also true for past years (checked 2015, 2010, 2000)
  • Loading branch information
KidkArolis committed Jul 5, 2019
1 parent 380acd6 commit 67c41c9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions workalendar/europe/denmark.py
Expand Up @@ -9,7 +9,6 @@
class Denmark(WesternCalendar, ChristianMixin):
'Denmark'

include_palm_sunday = True
include_holy_thursday = True
include_good_friday = True
include_easter_sunday = True
Expand All @@ -21,12 +20,6 @@ class Denmark(WesternCalendar, ChristianMixin):
whit_monday_label = "Pentecost Monday"
include_boxing_day = True
boxing_day_label = "Second Day of Christmas"
include_christmas_eve = True

FIXED_HOLIDAYS = WesternCalendar.FIXED_HOLIDAYS + (
(6, 5, "Constitution Day"),
(12, 31, "New Year's Eve")
)

def get_store_bededag(self, year): # 'great prayer day'
easter_sunday = self.get_easter_sunday(year)
Expand Down
4 changes: 0 additions & 4 deletions workalendar/tests/test_europe.py
Expand Up @@ -275,7 +275,6 @@ class DenmarkTest(GenericCalendarTest):
def test_year_2015(self):
holidays = self.cal.holidays_set(2015)
self.assertIn(date(2015, 1, 1), holidays) # nytaarsdag
self.assertIn(date(2015, 3, 29), holidays) # palmesoendag
self.assertIn(date(2015, 4, 2), holidays) # skaertaarsdag
self.assertIn(date(2015, 4, 3), holidays) # langfredag
self.assertIn(date(2015, 4, 5), holidays) # paaskedag
Expand All @@ -284,11 +283,8 @@ def test_year_2015(self):
self.assertIn(date(2015, 5, 14), holidays) # kristi himmelfart
self.assertIn(date(2015, 5, 24), holidays) # pinsedag
self.assertIn(date(2015, 5, 25), holidays) # 2. pinsedag
self.assertIn(date(2015, 6, 5), holidays) # grundlovsdag
self.assertIn(date(2015, 12, 24), holidays) # juleaftensdag
self.assertIn(date(2015, 12, 25), holidays) # juledag
self.assertIn(date(2015, 12, 26), holidays) # 2. juledag
self.assertIn(date(2015, 12, 31), holidays) # nytaarsaften


class SlovakiaTest(GenericCalendarTest):
Expand Down

0 comments on commit 67c41c9

Please sign in to comment.