Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion brel/characteristics/period_characteristic.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def __str__(self) -> str:
if self.__is_instant:
return f"{self.__instant_date}"
else:
return f"{self.__start_date} - {self.__end_date}"
return f"{self.__start_date}/{self.__end_date}"

def __eq__(self, __value: object) -> bool:
if not isinstance(__value, PeriodCharacteristic):
Expand Down
4 changes: 2 additions & 2 deletions tests/core_tests/test_fact.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def test_qname_getters():

assert fact.get_unit() == None, "Expected None as fact unit is not defined"
assert (
str(fact.get_period()) == "2022-09-25 - 2023-07-01"
), "Expected '2022-09-25 - 2023-07-01' as fact unit is 'from 2022-09-25 to 2023-07-01'"
str(fact.get_period()) == "2022-09-25/2023-07-01"
), "Expected '2022-09-25/2023-07-01' as fact unit is 'from 2022-09-25 to 2023-07-01'"
assert (
str(fact.get_concept()) == "dei:DocumentQuarterlyReport"
), "Expected 'dei:DocumentQuarterlyReport' as fact concept is 'dei:DocumentQuarterlyReport'"
Expand Down
Loading