test: some cleanup

This commit is contained in:
Matthias
2025-11-04 07:14:01 +01:00
parent c748ac2aa2
commit 007ab1b796
2 changed files with 0 additions and 2 deletions

View File

@@ -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.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\..*"):
hyperopt.hyperopter.init_spaces()

View File

@@ -939,7 +939,6 @@ def test_auto_hyperopt_interface(default_conf):
# Parameter is disabled - so value from sell_param dict will NOT be used.
assert strategy.sell_minusdi.value == 0.5
# all_params = strategy.detect_all_parameters()
all_params = detect_all_parameters(strategy.__class__)
assert isinstance(all_params, dict)
# Only one buy param at class level