Merge pull request #2802 from freqtrade/try_fixrandomfailure

Fix missed mock
This commit is contained in:
hroff-1902 2020-01-25 16:05:22 +03:00 committed by GitHub
commit f6278da23f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -665,11 +665,11 @@ def test_start_list_strategies(mocker, caplog, capsys):
assert "DefaultStrategy" in captured.out 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', mocker.patch.multiple('freqtrade.exchange.Exchange',
markets=PropertyMock(return_value=markets),
exchange_has=MagicMock(return_value=True), exchange_has=MagicMock(return_value=True),
get_tickers=tickers get_tickers=tickers,
) )
default_conf['pairlists'] = [ default_conf['pairlists'] = [