Cleanup log_has_re regexp string

This commit is contained in:
hroff-1902 2019-09-11 10:56:02 +03:00
parent 2081d7552f
commit 2bd59de002

View File

@ -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)