user_data_dir is PATH in config, not str

This commit is contained in:
Matthias 2019-07-21 16:06:44 +02:00
parent 0a253d66d0
commit 113947132c
2 changed files with 2 additions and 1 deletions

View File

@ -234,7 +234,7 @@ def default_conf():
}, },
"initial_state": "running", "initial_state": "running",
"db_url": "sqlite://", "db_url": "sqlite://",
"user_data_dir": "user_data", "user_data_dir": Path("user_data"),
"verbosity": 3, "verbosity": 3,
} }
return configuration return configuration

View File

@ -53,6 +53,7 @@ def test_load_config_incorrect_stake_amount(default_conf) -> None:
def test_load_config_file(default_conf, mocker, caplog) -> 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( file_mock = mocker.patch('freqtrade.configuration.configuration.open', mocker.mock_open(
read_data=json.dumps(default_conf) read_data=json.dumps(default_conf)
)) ))