From b363940baf1a6e15ed10dd13fceef428724be331 Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Sat, 26 Feb 2022 08:42:18 -0600 Subject: [PATCH] Add TODO-lev comment in test_handle_stoploss_on_exchange --- tests/test_freqtradebot.py | 3 +++ 1 file changed, 3 insertions(+) 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()