@@ -686,7 +686,7 @@ def test_print_json_spaces_all(mocker, hyperopt_conf, capsys) -> None:
686686
687687 hyperopt_conf .update (
688688 {
689- "spaces" : "all" ,
689+ "spaces" : [ "all" ] ,
690690 "hyperopt_jobs" : 1 ,
691691 "print_json" : True ,
692692 }
@@ -802,7 +802,7 @@ def test_print_json_spaces_roi_stoploss(mocker, hyperopt_conf, capsys) -> None:
802802
803803 hyperopt_conf .update (
804804 {
805- "spaces" : "roi stoploss" ,
805+ "spaces" : [ "roi" , " stoploss"] ,
806806 "hyperopt_jobs" : 1 ,
807807 "print_json" : True ,
808808 }
@@ -854,7 +854,7 @@ def test_simplified_interface_roi_stoploss(mocker, hyperopt_conf, capsys) -> Non
854854 )
855855 patch_exchange (mocker )
856856
857- hyperopt_conf .update ({"spaces" : "roi stoploss" })
857+ hyperopt_conf .update ({"spaces" : [ "roi" , " stoploss"] })
858858
859859 hyperopt = Hyperopt (hyperopt_conf )
860860 hyperopt .hyperopter .backtesting .strategy .advise_all_indicators = MagicMock ()
@@ -893,7 +893,7 @@ def test_simplified_interface_all_failed(mocker, hyperopt_conf, caplog) -> None:
893893
894894 hyperopt_conf .update (
895895 {
896- "spaces" : "all" ,
896+ "spaces" : [ "all" ] ,
897897 }
898898 )
899899
@@ -947,7 +947,7 @@ def test_simplified_interface_buy(mocker, hyperopt_conf, capsys) -> None:
947947 )
948948 patch_exchange (mocker )
949949
950- hyperopt_conf .update ({"spaces" : "buy" })
950+ hyperopt_conf .update ({"spaces" : [ "buy" ] })
951951
952952 hyperopt = Hyperopt (hyperopt_conf )
953953 hyperopt .hyperopter .backtesting .strategy .advise_all_indicators = MagicMock ()
@@ -1003,7 +1003,7 @@ def test_simplified_interface_sell(mocker, hyperopt_conf, capsys) -> None:
10031003
10041004 hyperopt_conf .update (
10051005 {
1006- "spaces" : "sell" ,
1006+ "spaces" : [ "sell" ] ,
10071007 }
10081008 )
10091009
@@ -1054,7 +1054,7 @@ def test_simplified_interface_failed(mocker, hyperopt_conf, space) -> None:
10541054
10551055 patch_exchange (mocker )
10561056
1057- hyperopt_conf .update ({"spaces" : space })
1057+ hyperopt_conf .update ({"spaces" : [ space ] })
10581058
10591059 hyperopt = Hyperopt (hyperopt_conf )
10601060 hyperopt .hyperopter .backtesting .strategy .advise_all_indicators = MagicMock ()
0 commit comments