Improve leggibility of test

This commit is contained in:
Matthias
2021-11-14 19:53:08 +01:00
parent da3ceb0904
commit e7499b7c44
2 changed files with 23 additions and 20 deletions

View File

@@ -2896,6 +2896,8 @@ def test_timeframe_to_prev_date():
# Does not round
time = datetime(2019, 8, 12, 13, 20, 0, tzinfo=timezone.utc)
assert timeframe_to_prev_date('5m', time) == time
time = datetime(2019, 8, 12, 13, 0, 0, tzinfo=timezone.utc)
assert timeframe_to_prev_date('1h', time) == time
def test_timeframe_to_next_date():