Patch funding_fee calculation for unrelated test

This commit is contained in:
Matthias
2023-12-10 13:51:18 +01:00
parent 8964c138f1
commit 3f6cd9ee51

View File

@@ -549,6 +549,7 @@ def test_backtest__enter_trade_futures(default_conf_usdt, fee, mocker) -> None:
default_conf_usdt['exchange']['pair_whitelist'] = ['.*']
backtesting = Backtesting(default_conf_usdt)
backtesting._set_strategy(backtesting.strategylist[0])
mocker.patch('freqtrade.optimize.backtesting.Backtesting._run_funding_fees')
pair = 'ETH/USDT:USDT'
row = [
pd.Timestamp(year=2020, month=1, day=1, hour=5, minute=0),