From ea79eb55e979e08d89401904ee3b307e2d2dd3d3 Mon Sep 17 00:00:00 2001 From: Reigo Reinmets Date: Sat, 25 Dec 2021 10:43:25 +0200 Subject: [PATCH] Remove this test change from DCA branch. --- tests/optimize/test_hyperopt.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/optimize/test_hyperopt.py b/tests/optimize/test_hyperopt.py index 5e8d899c8..a43c62376 100644 --- a/tests/optimize/test_hyperopt.py +++ b/tests/optimize/test_hyperopt.py @@ -1,5 +1,4 @@ # pragma pylint: disable=missing-docstring,W0212,C0103 -import os from datetime import datetime from pathlib import Path from unittest.mock import ANY, MagicMock @@ -170,7 +169,6 @@ def test_start_no_hyperopt_allowed(mocker, hyperopt_conf, caplog) -> None: def test_start_no_data(mocker, hyperopt_conf) -> None: - hyperopt_conf['user_data_dir'] = Path("tests") patched_configuration_load_config_file(mocker, hyperopt_conf) mocker.patch('freqtrade.data.history.load_pair_history', MagicMock(return_value=pd.DataFrame)) mocker.patch( @@ -191,12 +189,6 @@ def test_start_no_data(mocker, hyperopt_conf) -> None: with pytest.raises(OperationalException, match='No data found. Terminating.'): start_hyperopt(pargs) - # Cleanup since that failed hyperopt start leaves a lockfile. - try: - os.unlink(Hyperopt.get_lock_filename(hyperopt_conf)) - except Exception: - pass - def test_start_filelock(mocker, hyperopt_conf, caplog) -> None: hyperopt_mock = MagicMock(side_effect=Timeout(Hyperopt.get_lock_filename(hyperopt_conf)))