Fix wrong sequence in test

This commit is contained in:
Matthias 2020-09-09 07:57:02 +02:00
parent 25938efee6
commit 083c358044

View File

@ -4418,9 +4418,10 @@ def test_refind_lost_order(mocker, default_conf, fee, caplog):
assert mock_fo.call_count == 1 assert mock_fo.call_count == 1
assert mock_uts.call_count == 1 assert mock_uts.call_count == 1
caplog.clear()
# Test error case # Test error case
mock_fo = mocker.patch('freqtrade.exchange.Exchange.fetch_order_or_stoploss_order', mock_fo = mocker.patch('freqtrade.exchange.Exchange.fetch_order_or_stoploss_order',
side_effect=ExchangeError()) side_effect=ExchangeError())
freqtrade.refind_lost_order(trades[4]) freqtrade.refind_lost_order(trades[4])
caplog.clear()
assert log_has(f"Error updating {order['id']}.", caplog) assert log_has(f"Error updating {order['id']}.", caplog)