mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Mock config loading for ft-client test
This commit is contained in:
parent
3979801a86
commit
df47d154f9
|
@ -190,6 +190,7 @@ def test_ft_client(mocker, capsys, caplog):
|
||||||
)
|
)
|
||||||
def test_ft_client_argparsing(mocker, params, expected_args, expected_kwargs, caplog):
|
def test_ft_client_argparsing(mocker, params, expected_args, expected_kwargs, caplog):
|
||||||
mocked_method = params.split(" ")[0]
|
mocked_method = params.split(" ")[0]
|
||||||
|
mocker.patch("freqtrade_client.ft_client.load_config", return_value={}, autospec=True)
|
||||||
mm = mocker.patch(
|
mm = mocker.patch(
|
||||||
f"freqtrade_client.ft_client.FtRestClient.{mocked_method}", return_value={}, autospec=True
|
f"freqtrade_client.ft_client.FtRestClient.{mocked_method}", return_value={}, autospec=True
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user