Use both old and new fixtures for test

This commit is contained in:
Matthias 2021-05-02 20:42:01 +02:00
parent fc110ea418
commit 6d7096dc66

View File

@ -918,10 +918,11 @@ def test_start_test_pairlist(mocker, caplog, tickers, default_conf, capsys):
captured.out) captured.out)
def test_hyperopt_list(mocker, capsys, caplog, saved_hyperopt_results): def test_hyperopt_list(mocker, capsys, caplog, saved_hyperopt_results, saved_hyperopt_results_legacy):
for _ in (saved_hyperopt_results, saved_hyperopt_results_legacy):
mocker.patch( mocker.patch(
'freqtrade.optimize.hyperopt_tools.HyperoptTools.load_previous_results', 'freqtrade.optimize.hyperopt_tools.HyperoptTools.load_previous_results',
MagicMock(return_value=saved_hyperopt_results) MagicMock(return_value=saved_hyperopt_results_legacy)
) )
args = [ args = [