From 083c358044d53b2303f2dbbeb260d2b1fad09dd9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 9 Sep 2020 07:57:02 +0200 Subject: [PATCH] Fix wrong sequence in test --- tests/test_freqtradebot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_freqtradebot.py b/tests/test_freqtradebot.py index 625c6ed7e..542206e62 100644 --- a/tests/test_freqtradebot.py +++ b/tests/test_freqtradebot.py @@ -4418,9 +4418,10 @@ def test_refind_lost_order(mocker, default_conf, fee, caplog): assert mock_fo.call_count == 1 assert mock_uts.call_count == 1 + caplog.clear() + # Test error case mock_fo = mocker.patch('freqtrade.exchange.Exchange.fetch_order_or_stoploss_order', side_effect=ExchangeError()) freqtrade.refind_lost_order(trades[4]) - caplog.clear() assert log_has(f"Error updating {order['id']}.", caplog)