Mock config loading for ft-client test

This commit is contained in:
Matthias 2024-06-16 08:09:35 +02:00
parent 3979801a86
commit df47d154f9

View File

@ -190,6 +190,7 @@ def test_ft_client(mocker, capsys, caplog):
)
def test_ft_client_argparsing(mocker, params, expected_args, expected_kwargs, caplog):
mocked_method = params.split(" ")[0]
mocker.patch("freqtrade_client.ft_client.load_config", return_value={}, autospec=True)
mm = mocker.patch(
f"freqtrade_client.ft_client.FtRestClient.{mocked_method}", return_value={}, autospec=True
)