Skip to content

Commit

Permalink
Cleanup log_has_re regexp string
Browse files Browse the repository at this point in the history
  • Loading branch information
hroff-1902 committed Sep 11, 2019
1 parent 2081d75 commit 2bd59de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_freqtradebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2151,10 +2151,10 @@ def test_check_handle_timedout_exception(default_conf, ticker, mocker, caplog) -
Trade.session.add(trade_buy)

freqtrade.check_handle_timedout()
assert log_has_re(f"Cannot query order for Trade\\(id=1, pair=ETH/BTC, amount=90.99181073, "
f"open_rate=0.00001099, open_since="
assert log_has_re(r"Cannot query order for Trade\(id=1, pair=ETH/BTC, amount=90.99181073, "
r"open_rate=0.00001099, open_since="
f"{open_date.strftime('%Y-%m-%d %H:%M:%S')} "
f"\\(10 hours ago\\)\\) due to Traceback \\(most recent call last\\):\n*",
r"\(10 hours ago\)\) due to Traceback \(most recent call last\):\n*",
caplog)


Expand Down

0 comments on commit 2bd59de

Please sign in to comment.