test: update mock for price_to_precision

This commit is contained in:
Matthias
2026-03-14 15:51:39 +01:00
parent 10ba9e3105
commit be00f2c26f
+3 -1
View File
@@ -1888,7 +1888,9 @@ def test_backtest_multi_pair_long_short_switch(
if use_detail:
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_max_pair_stake_amount", return_value=float("inf"))
mocker.patch(f"{EXMS}.get_fee", fee)