From 1fccdd8cda15eb2ada54643ceb4b16057b85ce44 Mon Sep 17 00:00:00 2001 From: Axel-CH Date: Wed, 11 Sep 2024 18:59:29 -0400 Subject: [PATCH] fix test_exit_positions --- tests/freqtradebot/test_freqtradebot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/freqtradebot/test_freqtradebot.py b/tests/freqtradebot/test_freqtradebot.py index ec9d27a4d..ec934fe53 100644 --- a/tests/freqtradebot/test_freqtradebot.py +++ b/tests/freqtradebot/test_freqtradebot.py @@ -1265,14 +1265,14 @@ def test_exit_positions(mocker, default_conf_usdt, limit_order, is_short, caplog trades = [trade] freqtrade.wallets.update() n = freqtrade.exit_positions(trades) - assert n == 0 + assert n == 1 # Test amount not modified by fee-logic assert not log_has_re(r"Applying fee to amount for Trade .*", caplog) gra = mocker.patch("freqtrade.freqtradebot.FreqtradeBot.get_real_amount", return_value=0.0) # test amount modified by fee-logic n = freqtrade.exit_positions(trades) - assert n == 0 + assert n == 1 assert gra.call_count == 0