diff --git a/tests/optimize/test_hyperopt.py b/tests/optimize/test_hyperopt.py index 805fd3c2b..086df46ac 100644 --- a/tests/optimize/test_hyperopt.py +++ b/tests/optimize/test_hyperopt.py @@ -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() diff --git a/tests/strategy/test_interface.py b/tests/strategy/test_interface.py index 324617869..bf422d0ec 100644 --- a/tests/strategy/test_interface.py +++ b/tests/strategy/test_interface.py @@ -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