Cleanup log_has_re regexp string
This commit is contained in:
parent
2081d7552f
commit
2bd59de002
@ -2151,10 +2151,10 @@ def test_check_handle_timedout_exception(default_conf, ticker, mocker, caplog) -
|
|||||||
Trade.session.add(trade_buy)
|
Trade.session.add(trade_buy)
|
||||||
|
|
||||||
freqtrade.check_handle_timedout()
|
freqtrade.check_handle_timedout()
|
||||||
assert log_has_re(f"Cannot query order for Trade\\(id=1, pair=ETH/BTC, amount=90.99181073, "
|
assert log_has_re(r"Cannot query order for Trade\(id=1, pair=ETH/BTC, amount=90.99181073, "
|
||||||
f"open_rate=0.00001099, open_since="
|
r"open_rate=0.00001099, open_since="
|
||||||
f"{open_date.strftime('%Y-%m-%d %H:%M:%S')} "
|
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)
|
caplog)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user