mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
test: Update tests for short-circuit behavior
This commit is contained in:
@@ -1647,8 +1647,8 @@ def test_backtest_multi_pair_detail(
|
||||
if use_detail:
|
||||
# Backtest loop is called once per candle per pair
|
||||
# Exact numbers depend on trade state - but should be around 3_800
|
||||
assert bl_spy.call_count > 1_350
|
||||
assert bl_spy.call_count < 1_500
|
||||
assert bl_spy.call_count > 1_220
|
||||
assert bl_spy.call_count < 1_300
|
||||
else:
|
||||
assert bl_spy.call_count < 995
|
||||
|
||||
@@ -1896,7 +1896,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 == 1523
|
||||
assert bl_spy.call_count == 1484
|
||||
else:
|
||||
assert bl_spy.call_count == 479
|
||||
|
||||
|
||||
Reference in New Issue
Block a user