Skip to content

Commit

Permalink
Testing with now() should not pass in date/time
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Aug 25, 2019
1 parent 8f8acf5 commit e603cca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freqtrade/tests/exchange/test_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ def test_timeframe_to_prev_date():
assert timeframe_to_prev_date(interval, date) == result

date = datetime.now(tz=timezone.utc)
assert timeframe_to_prev_date("5m", date) < date
assert timeframe_to_prev_date("5m") < date


def test_timeframe_to_next_date():
Expand All @@ -1629,4 +1629,4 @@ def test_timeframe_to_next_date():
assert timeframe_to_next_date(interval, date) == result

date = datetime.now(tz=timezone.utc)
assert timeframe_to_next_date("5m", date) > date
assert timeframe_to_next_date("5m") > date

0 comments on commit e603cca

Please sign in to comment.