Automatically create freqai models directory

This commit is contained in:
Matthias
2022-10-10 18:03:55 +02:00
parent 002a46c5a0
commit ee0d90d1aa
2 changed files with 5 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ def test_create_userdata_dir(mocker, default_conf, caplog) -> None:
md = mocker.patch.object(Path, 'mkdir', MagicMock())
x = create_userdata_dir('/tmp/bar', create_dir=True)
assert md.call_count == 9
assert md.call_count == 10
assert md.call_args[1]['parents'] is False
assert log_has(f'Created user-data directory: {Path("/tmp/bar")}', caplog)
assert isinstance(x, Path)