test: update mock for price_to_precision
This commit is contained in:
@@ -1888,7 +1888,9 @@ def test_backtest_multi_pair_long_short_switch(
|
|||||||
if use_detail:
|
if use_detail:
|
||||||
default_conf_usdt["timeframe_detail"] = "1m"
|
default_conf_usdt["timeframe_detail"] = "1m"
|
||||||
|
|
||||||
mocker.patch(f"{EXMS}.price_to_precision", lambda s, x, y, **kwargs: y)
|
mocker.patch(
|
||||||
|
"freqtrade.optimize.backtesting.price_to_precision", lambda price, *args, **kwargs: price
|
||||||
|
)
|
||||||
mocker.patch(f"{EXMS}.get_min_pair_stake_amount", return_value=0.00001)
|
mocker.patch(f"{EXMS}.get_min_pair_stake_amount", return_value=0.00001)
|
||||||
mocker.patch(f"{EXMS}.get_max_pair_stake_amount", return_value=float("inf"))
|
mocker.patch(f"{EXMS}.get_max_pair_stake_amount", return_value=float("inf"))
|
||||||
mocker.patch(f"{EXMS}.get_fee", fee)
|
mocker.patch(f"{EXMS}.get_fee", fee)
|
||||||
|
|||||||
Reference in New Issue
Block a user