Skip to content

Commit

Permalink
Merge pull request #193 from hf-kklein/24hlfw-im-juni
Browse files Browse the repository at this point in the history
fix: shift Sonderfeiertag for 24h LFW from `2025-04-04` to `2025-06-06`
  • Loading branch information
mj0nez authored Dec 8, 2024
2 parents 6c520c0 + f59b26e commit ce432db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/bdew_datetimes/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from typing import Any

from holidays import HolidayBase, HolidaySum
from holidays.constants import APR, DEC # type:ignore[attr-defined]
from holidays.constants import DEC, JUN # type:ignore[attr-defined]
from holidays.countries.germany import Germany


Expand All @@ -29,8 +29,9 @@ def _populate(self, year: int) -> None:
self[date(year, DEC, 24)] = "Heiligabend"
self[date(year, DEC, 31)] = "Silvester"
if year == 2025:
self[date(2025, APR, 4)] = (
"Sonderfeiertag" # Anlässlich der Einführung des 24h Lieferantenwechsels
self[date(2025, JUN, 6)] = (
"Sonderfeiertag"
# Anlässlich der (verschobenen) Einführung des 24h Lieferantenwechsels
)


Expand Down
2 changes: 1 addition & 1 deletion tests/test_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_bdew_holidays(expected_holiday: date) -> None:
pytest.param(date(2024, 8, 15), True, id="Mariä Himmelfahrt (BY, SL)"),
pytest.param(date(2024, 11, 20), True, id="Buß- und Bettag (SN)"),
pytest.param(date(2024, 12, 31), True, id="Silvester 2024 (BDEW)"),
pytest.param(date(2025, 4, 4), True, id="Sonderfeiertag 2025 (BDEW)"),
pytest.param(date(2025, 6, 6), True, id="Sonderfeiertag 2025 (BDEW)"),
],
)
def test_create_bdew_calendar(
Expand Down

0 comments on commit ce432db

Please sign in to comment.