Fix mock going into nirvana

This commit is contained in:
Matthias 2021-10-04 06:59:08 +02:00
parent 70db228f24
commit 6e1e1e00c2

View File

@ -4292,10 +4292,7 @@ def test_update_funding_fees(mocker, default_conf, exchange, trading_mode, calls
patch_RPCManager(mocker) patch_RPCManager(mocker)
patch_exchange(mocker) patch_exchange(mocker)
mocker.patch( mocker.patch('freqtrade.freqtradebot.FreqtradeBot.update_funding_fees', return_value=True)
'freqtrade.freqtradebot',
update_funding_fees=MagicMock(return_value=True)
)
freqtrade = get_patched_freqtradebot(mocker, default_conf) freqtrade = get_patched_freqtradebot(mocker, default_conf)
with time_machine.travel("2021-09-01 00:00:00 +00:00") as t: with time_machine.travel("2021-09-01 00:00:00 +00:00") as t: