fix hyperopt test when no config.json exists

This commit is contained in:
xmatthias 2018-06-16 13:49:03 +02:00
parent a5511e2e30
commit 7564f7e526

View File

@ -61,6 +61,10 @@ def test_start(mocker, default_conf, caplog) -> None:
Test start() function
"""
start_mock = MagicMock()
mocker.patch(
'freqtrade.configuration.Configuration._load_config_file',
lambda *args, **kwargs: default_conf
)
mocker.patch('freqtrade.optimize.hyperopt.Hyperopt.start', start_mock)
mocker.patch('freqtrade.freqtradebot.exchange.validate_pairs', MagicMock())