test: some cleanup
This commit is contained in:
@@ -941,7 +941,6 @@ def test_simplified_interface_none_selected(mocker, hyperopt_conf, caplog) -> No
|
|||||||
hyperopt.hyperopter.backtesting.strategy.advise_all_indicators = MagicMock()
|
hyperopt.hyperopter.backtesting.strategy.advise_all_indicators = MagicMock()
|
||||||
hyperopt.hyperopter.custom_hyperopt.generate_roi_table = MagicMock(return_value={})
|
hyperopt.hyperopter.custom_hyperopt.generate_roi_table = MagicMock(return_value={})
|
||||||
|
|
||||||
# The first one to fail raises the exception
|
|
||||||
with pytest.raises(OperationalException, match=r"No hyperopt parameters found to optimize\..*"):
|
with pytest.raises(OperationalException, match=r"No hyperopt parameters found to optimize\..*"):
|
||||||
hyperopt.hyperopter.init_spaces()
|
hyperopt.hyperopter.init_spaces()
|
||||||
|
|
||||||
|
|||||||
@@ -939,7 +939,6 @@ def test_auto_hyperopt_interface(default_conf):
|
|||||||
|
|
||||||
# Parameter is disabled - so value from sell_param dict will NOT be used.
|
# Parameter is disabled - so value from sell_param dict will NOT be used.
|
||||||
assert strategy.sell_minusdi.value == 0.5
|
assert strategy.sell_minusdi.value == 0.5
|
||||||
# all_params = strategy.detect_all_parameters()
|
|
||||||
all_params = detect_all_parameters(strategy.__class__)
|
all_params = detect_all_parameters(strategy.__class__)
|
||||||
assert isinstance(all_params, dict)
|
assert isinstance(all_params, dict)
|
||||||
# Only one buy param at class level
|
# Only one buy param at class level
|
||||||
|
|||||||
Reference in New Issue
Block a user