From 6e1e1e00c259d13b81d50c84120a542378650b59 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 4 Oct 2021 06:59:08 +0200 Subject: [PATCH] Fix mock going into nirvana --- tests/test_freqtradebot.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/test_freqtradebot.py b/tests/test_freqtradebot.py index c2dfaeb24..5eb59981e 100644 --- a/tests/test_freqtradebot.py +++ b/tests/test_freqtradebot.py @@ -4292,10 +4292,7 @@ def test_update_funding_fees(mocker, default_conf, exchange, trading_mode, calls patch_RPCManager(mocker) patch_exchange(mocker) - mocker.patch( - 'freqtrade.freqtradebot', - update_funding_fees=MagicMock(return_value=True) - ) + mocker.patch('freqtrade.freqtradebot.FreqtradeBot.update_funding_fees', return_value=True) freqtrade = get_patched_freqtradebot(mocker, default_conf) with time_machine.travel("2021-09-01 00:00:00 +00:00") as t: