From 113947132c0a6740ef6e8b19a37759a0b0715a57 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 21 Jul 2019 16:06:44 +0200 Subject: [PATCH] user_data_dir is PATH in config, not str --- freqtrade/tests/conftest.py | 2 +- freqtrade/tests/test_configuration.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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) ))