From a3ac05cc16f3b9fd684fd0330f9b5e3191a34d4a Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 25 Jan 2020 13:38:13 +0100 Subject: [PATCH] Fix missed mock --- tests/test_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index e145a8470..7ca2cac5a 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -665,11 +665,11 @@ def test_start_list_strategies(mocker, caplog, capsys): assert "DefaultStrategy" in captured.out -def test_start_test_pairlist(mocker, caplog, markets, tickers, default_conf, capsys): +def test_start_test_pairlist(mocker, caplog, tickers, default_conf, capsys): + patch_exchange(mocker, mock_markets=True) mocker.patch.multiple('freqtrade.exchange.Exchange', - markets=PropertyMock(return_value=markets), exchange_has=MagicMock(return_value=True), - get_tickers=tickers + get_tickers=tickers, ) default_conf['pairlists'] = [