diff --git a/freqtrade/tests/conftest.py b/freqtrade/tests/conftest.py index de3b2e4d9..0aaf28d96 100644 --- a/freqtrade/tests/conftest.py +++ b/freqtrade/tests/conftest.py @@ -234,7 +234,7 @@ def default_conf(): }, "initial_state": "running", "db_url": "sqlite://", - "user_data_dir": "user_data", + "user_data_dir": Path("user_data"), "verbosity": 3, } return configuration diff --git a/freqtrade/tests/test_configuration.py b/freqtrade/tests/test_configuration.py index 15a2a3271..3d75818d4 100644 --- a/freqtrade/tests/test_configuration.py +++ b/freqtrade/tests/test_configuration.py @@ -53,6 +53,7 @@ def test_load_config_incorrect_stake_amount(default_conf) -> None: def test_load_config_file(default_conf, mocker, caplog) -> None: + del default_conf['user_data_dir'] file_mock = mocker.patch('freqtrade.configuration.configuration.open', mocker.mock_open( read_data=json.dumps(default_conf) ))