refactor: simplify backtesting class

This commit is contained in:
Matthias
2025-01-17 19:18:28 +01:00
parent f7f78ad2a4
commit e350dbd552
2 changed files with 14 additions and 25 deletions

View File

@@ -1907,9 +1907,9 @@ 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 == 1482
assert bl_spy.call_count == 1511
else:
assert bl_spy.call_count == 479
assert bl_spy.call_count == 508
# Make sure we have parallel trades
assert len(evaluate_result_multi(results["results"], "5m", 0)) > 0