mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 11:51:19 +00:00
feat: improve format_date with fallback value
This commit is contained in:
@@ -108,6 +108,7 @@ def test_format_date() -> None:
|
||||
date = datetime(2021, 9, 30, 22, 59, 3, 455555, tzinfo=UTC)
|
||||
assert format_date(date) == "2021-09-30 22:59:03"
|
||||
assert format_date(None) == ""
|
||||
assert format_date(None, "closed") == "closed"
|
||||
|
||||
|
||||
def test_format_ms_time_detailed() -> None:
|
||||
|
||||
Reference in New Issue
Block a user