From ae325ff12456d0fbfac2424a2de685eb471f858f Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 12 Oct 2024 19:26:58 +0200 Subject: [PATCH] tests: fix test based on changed behavior --- tests/optimize/test_backtesting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/optimize/test_backtesting.py b/tests/optimize/test_backtesting.py index f064247c6..f731db22f 100644 --- a/tests/optimize/test_backtesting.py +++ b/tests/optimize/test_backtesting.py @@ -1774,7 +1774,7 @@ def test_backtest_multi_pair_long_short_switch( if use_detail: # Backtest loop is called once per candle per pair - assert bl_spy.call_count == 1071 + assert bl_spy.call_count == 1523 else: assert bl_spy.call_count == 479 @@ -1784,7 +1784,7 @@ def test_backtest_multi_pair_long_short_switch( assert len(evaluate_result_multi(results["results"], "5m", 1)) == 0 # Expect 26 results initially - assert len(results["results"]) == 30 + assert len(results["results"]) == 53 def test_backtest_start_timerange(default_conf, mocker, caplog, testdatadir):