Skip to content

Commit ce432db

Browse files
authored
Merge pull request #193 from hf-kklein/24hlfw-im-juni
fix: shift Sonderfeiertag for 24h LFW from `2025-04-04` to `2025-06-06`
2 parents 6c520c0 + f59b26e commit ce432db

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/bdew_datetimes/calendar.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from typing import Any
88

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

1313

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

3637

tests/test_calendar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_bdew_holidays(expected_holiday: date) -> None:
3030
pytest.param(date(2024, 8, 15), True, id="Mariä Himmelfahrt (BY, SL)"),
3131
pytest.param(date(2024, 11, 20), True, id="Buß- und Bettag (SN)"),
3232
pytest.param(date(2024, 12, 31), True, id="Silvester 2024 (BDEW)"),
33-
pytest.param(date(2025, 4, 4), True, id="Sonderfeiertag 2025 (BDEW)"),
33+
pytest.param(date(2025, 6, 6), True, id="Sonderfeiertag 2025 (BDEW)"),
3434
],
3535
)
3636
def test_create_bdew_calendar(

0 commit comments

Comments
 (0)