From 4717f716de0814fbebcf43b84e0b038ef7503b99 Mon Sep 17 00:00:00 2001 From: Axel-CH Date: Sun, 1 Dec 2024 10:41:41 -0400 Subject: [PATCH] fix test_dca_exiting --- tests/freqtradebot/test_integration.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/freqtradebot/test_integration.py b/tests/freqtradebot/test_integration.py index 9cf82de75..1cb6238d7 100644 --- a/tests/freqtradebot/test_integration.py +++ b/tests/freqtradebot/test_integration.py @@ -681,7 +681,11 @@ def test_dca_exiting(default_conf_usdt, ticker_usdt, fee, mocker, caplog, levera assert trade.orders[-1].ft_order_side == "sell" assert pytest.approx(trade.stake_amount) == 40 assert trade.is_open is False - assert log_has_re("Amount to exit is 0.0 due to exchange limits - not exiting.", caplog) + assert log_has_re( + "Wanted to exit of -0.01 amount, but exit amount is now 0.0 due to exchange limits " + "- not exiting.", + caplog, + ) expected_profit = starting_amount - 60 + trade.realized_profit assert pytest.approx(freqtrade.wallets.get_free("USDT")) == expected_profit if spot: