user_data_dir is PATH in config, not str
This commit is contained in:
parent
0a253d66d0
commit
113947132c
@ -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
|
||||
|
@ -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)
|
||||
))
|
||||
|
Loading…
Reference in New Issue
Block a user