Skip to content

Commit

Permalink
fix: the rest
Browse files Browse the repository at this point in the history
  • Loading branch information
mj0nez committed Jan 29, 2024
1 parent 42aa37b commit 47ef89b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/bdew_datetimes/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
contains the business logic (namely the BDEW calendar information)
"""

from datetime import date

from holidays import HolidayBase, HolidaySum
Expand Down
1 change: 1 addition & 0 deletions src/bdew_datetimes/german_strom_and_gas_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
A module to evaluate datetimes and whether they are "on the edge"
of a German "Stromtag" or "Gastag" respectively
"""

from datetime import datetime, time
from enum import Enum
from typing import Callable
Expand Down
1 change: 1 addition & 0 deletions src/bdew_datetimes/periods.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
("gesetzliche Fristen") in the German energy market.
It is based on the chapter "Fristenberechnung" in the GPKE.
"""

import datetime
from dataclasses import dataclass
from datetime import date
Expand Down
12 changes: 6 additions & 6 deletions tests/test_period.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def test_get_previous_working_day(start: date, expected: date):
Period(
6,
DayType.WORKING_DAY,
end_date_type=EndDateType.INCLUSIVE
end_date_type=EndDateType.INCLUSIVE,
# the abmeldedatum is the inclusive end of a contract
),
date(2016, 7, 12),
Expand All @@ -166,7 +166,7 @@ def test_get_previous_working_day(start: date, expected: date):
Period(
-6,
DayType.WORKING_DAY,
end_date_type=EndDateType.INCLUSIVE
end_date_type=EndDateType.INCLUSIVE,
# the abmeldedatum is the inclusive end of a contract
),
date(2016, 7, 4),
Expand All @@ -181,7 +181,7 @@ def test_get_previous_working_day(start: date, expected: date):
Period(
7,
DayType.WORKING_DAY,
end_date_type=EndDateType.EXCLUSIVE
end_date_type=EndDateType.EXCLUSIVE,
# lieferbeginn is the exclusive end of the previous contract
),
date(2016, 7, 14),
Expand All @@ -192,7 +192,7 @@ def test_get_previous_working_day(start: date, expected: date):
Period(
-7,
DayType.WORKING_DAY,
end_date_type=EndDateType.EXCLUSIVE
end_date_type=EndDateType.EXCLUSIVE,
# lieferbeginn is the exclusive end of the previous contract
),
date(2016, 7, 4),
Expand All @@ -207,7 +207,7 @@ def test_get_previous_working_day(start: date, expected: date):
Period(
10,
DayType.WORKING_DAY,
end_date_type=EndDateType.EXCLUSIVE
end_date_type=EndDateType.EXCLUSIVE,
# lieferbeginn is the exclusive end of the previous contract
),
date(2016, 7, 19),
Expand All @@ -218,7 +218,7 @@ def test_get_previous_working_day(start: date, expected: date):
Period(
-10,
DayType.WORKING_DAY,
end_date_type=EndDateType.EXCLUSIVE
end_date_type=EndDateType.EXCLUSIVE,
# lieferbeginn is the exclusive end of the previous contract
),
date(2016, 7, 4),
Expand Down

0 comments on commit 47ef89b

Please sign in to comment.