From b20bea8492cebaea3fb3fee50b96087b9d8263be Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Wed, 4 Dec 2019 23:15:19 +0300 Subject: [PATCH] Adjust tests --- tests/optimize/test_hyperopt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/optimize/test_hyperopt.py b/tests/optimize/test_hyperopt.py index 6a2d3f251..5617ee4db 100644 --- a/tests/optimize/test_hyperopt.py +++ b/tests/optimize/test_hyperopt.py @@ -637,7 +637,7 @@ def test_generate_optimizer(mocker, default_conf) -> None: 'sell-rsi-enabled': False, 'sell-rsi-value': 0, 'sell-trigger': 'macd_cross_signal'}, - 'stoploss': -0.4}, + 'stoploss': {'stoploss': -0.4}}, 'params_dict': optimizer_param, 'results_metrics': {'avg_profit': 2.3117, 'duration': 100.0, @@ -702,7 +702,7 @@ def test_print_json_spaces_all(mocker, default_conf, caplog, capsys) -> None: MagicMock(return_value=[{'loss': 1, 'results_explanation': 'foo result', 'params': {}, 'params_details': {'buy': {'mfi-value': None}, 'sell': {'sell-mfi-value': None}, - 'roi': {}, 'stoploss': None}}]) + 'roi': {}, 'stoploss': {'stoploss': None}}}]) ) patch_exchange(mocker) @@ -742,7 +742,7 @@ def test_print_json_spaces_roi_stoploss(mocker, default_conf, caplog, capsys) -> parallel = mocker.patch( 'freqtrade.optimize.hyperopt.Hyperopt.run_optimizer_parallel', MagicMock(return_value=[{'loss': 1, 'results_explanation': 'foo result', 'params': {}, - 'params_details': {'roi': {}, 'stoploss': None}}]) + 'params_details': {'roi': {}, 'stoploss': {'stoploss': None}}}]) ) patch_exchange(mocker)