mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33: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:
|
if use_detail:
|
||||||
# Backtest loop is called once per candle per pair
|
# Backtest loop is called once per candle per pair
|
||||||
# Exact numbers depend on trade state - but should be around 3_800
|
# 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_220
|
||||||
assert bl_spy.call_count < 1_500
|
assert bl_spy.call_count < 1_300
|
||||||
else:
|
else:
|
||||||
assert bl_spy.call_count < 995
|
assert bl_spy.call_count < 995
|
||||||
|
|
||||||
@@ -1896,7 +1896,7 @@ def test_backtest_multi_pair_long_short_switch(
|
|||||||
|
|
||||||
if use_detail:
|
if use_detail:
|
||||||
# Backtest loop is called once per candle per pair
|
# Backtest loop is called once per candle per pair
|
||||||
assert bl_spy.call_count == 1523
|
assert bl_spy.call_count == 1484
|
||||||
else:
|
else:
|
||||||
assert bl_spy.call_count == 479
|
assert bl_spy.call_count == 479
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user