Skip to content

Commit 4adab37

Browse files
committed
test: update test for removal of --hyperopt argument
1 parent ff7b1e0 commit 4adab37

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

tests/optimize/test_hyperopt.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -236,28 +236,6 @@ def test_start_not_installed(mocker, default_conf, import_fails) -> None:
236236
start_hyperopt(pargs)
237237

238238

239-
def test_start_no_hyperopt_allowed(mocker, hyperopt_conf, caplog) -> None:
240-
start_mock = MagicMock()
241-
patched_configuration_load_config_file(mocker, hyperopt_conf)
242-
mocker.patch("freqtrade.optimize.hyperopt.Hyperopt.start", start_mock)
243-
patch_exchange(mocker)
244-
245-
args = [
246-
"hyperopt",
247-
"--config",
248-
"config.json",
249-
"--hyperopt",
250-
"HyperoptTestSepFile",
251-
"--hyperopt-loss",
252-
"SharpeHyperOptLossDaily",
253-
"--epochs",
254-
"5",
255-
]
256-
pargs = get_args(args)
257-
with pytest.raises(OperationalException, match=r"Using separate Hyperopt files has been.*"):
258-
start_hyperopt(pargs)
259-
260-
261239
def test_start_no_data(mocker, hyperopt_conf, tmp_path) -> None:
262240
hyperopt_conf["user_data_dir"] = tmp_path
263241
patched_configuration_load_config_file(mocker, hyperopt_conf)

0 commit comments

Comments
 (0)