diff --git a/tests/test_freqtradebot.py b/tests/test_freqtradebot.py index d6930bc24..7b77375b6 100644 --- a/tests/test_freqtradebot.py +++ b/tests/test_freqtradebot.py @@ -1128,6 +1128,9 @@ def test_handle_stoploss_on_exchange(mocker, default_conf_usdt, fee, caplog, is_ assert trade.is_open is False caplog.clear() + # TODO-lev: Test 2 identical orders but one with leverage, 1 without, and test that the + # leveraged trade is hit, but the other trade is not + mocker.patch( 'freqtrade.exchange.Binance.stoploss', side_effect=ExchangeError()