From 9e599455e7400a6bf67a02eb88c1c3dea5a20688 Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Thu, 10 Feb 2022 03:44:37 -0600 Subject: [PATCH] test_execute_entry mocks get_max_leverage --- tests/test_freqtradebot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_freqtradebot.py b/tests/test_freqtradebot.py index 84916622a..0cb2d46f5 100644 --- a/tests/test_freqtradebot.py +++ b/tests/test_freqtradebot.py @@ -781,6 +781,7 @@ def test_execute_entry(mocker, default_conf_usdt, fee, limit_order, get_funding_fees=MagicMock(return_value=0), name=exchange_name, get_maintenance_ratio_and_amt=MagicMock(return_value=(0.01, 0.01)), + get_max_leverage=MagicMock(return_value=10), ) mocker.patch.multiple( 'freqtrade.exchange.Okex',