Skip to content

Commit a13feaf

Browse files
committed
test: Update tests for short-circuit behavior
1 parent 2697ac3 commit a13feaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/optimize/test_backtesting.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,8 +1647,8 @@ def _trend_alternate_hold(dataframe=None, metadata=None):
16471647
if use_detail:
16481648
# Backtest loop is called once per candle per pair
16491649
# Exact numbers depend on trade state - but should be around 3_800
1650-
assert bl_spy.call_count > 1_350
1651-
assert bl_spy.call_count < 1_500
1650+
assert bl_spy.call_count > 1_220
1651+
assert bl_spy.call_count < 1_300
16521652
else:
16531653
assert bl_spy.call_count < 995
16541654

@@ -1896,7 +1896,7 @@ def _trend_alternate_hold(dataframe=None, metadata=None):
18961896

18971897
if use_detail:
18981898
# Backtest loop is called once per candle per pair
1899-
assert bl_spy.call_count == 1523
1899+
assert bl_spy.call_count == 1484
19001900
else:
19011901
assert bl_spy.call_count == 479
19021902

0 commit comments

Comments
 (0)