create-userdir should create the notebooks folder, too

This commit is contained in:
Matthias
2019-11-01 13:55:26 +01:00
parent 471bd4d889
commit 19b1a6c638
2 changed files with 3 additions and 2 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 == 7
assert md.call_count == 8
assert md.call_args[1]['parents'] is False
assert log_has(f'Created user-data directory: {Path("/tmp/bar")}', caplog)
assert isinstance(x, Path)