From 4adab37b2aba31a0690522847df429acd0cbced8 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 29 Oct 2025 17:58:00 +0100 Subject: [PATCH] test: update test for removal of --hyperopt argument --- tests/optimize/test_hyperopt.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/tests/optimize/test_hyperopt.py b/tests/optimize/test_hyperopt.py index f778f64af..e4ce3d981 100644 --- a/tests/optimize/test_hyperopt.py +++ b/tests/optimize/test_hyperopt.py @@ -236,28 +236,6 @@ def test_start_not_installed(mocker, default_conf, import_fails) -> None: start_hyperopt(pargs) -def test_start_no_hyperopt_allowed(mocker, hyperopt_conf, caplog) -> None: - start_mock = MagicMock() - patched_configuration_load_config_file(mocker, hyperopt_conf) - mocker.patch("freqtrade.optimize.hyperopt.Hyperopt.start", start_mock) - patch_exchange(mocker) - - args = [ - "hyperopt", - "--config", - "config.json", - "--hyperopt", - "HyperoptTestSepFile", - "--hyperopt-loss", - "SharpeHyperOptLossDaily", - "--epochs", - "5", - ] - pargs = get_args(args) - with pytest.raises(OperationalException, match=r"Using separate Hyperopt files has been.*"): - start_hyperopt(pargs) - - def test_start_no_data(mocker, hyperopt_conf, tmp_path) -> None: hyperopt_conf["user_data_dir"] = tmp_path patched_configuration_load_config_file(mocker, hyperopt_conf)