1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Fix: [storage] broken support of 'folder_umask': test

This commit is contained in:
Peter Bieringer 2025-06-13 07:35:49 +02:00
parent 7b9596b850
commit 2d417098af

View file

@ -46,6 +46,12 @@ class TestMultiFileSystem(BaseTest):
self.configure({"storage": {"filesystem_folder": folder}}) self.configure({"storage": {"filesystem_folder": folder}})
assert os.path.isdir(folder) assert os.path.isdir(folder)
def test_folder_creation_with_umask(self) -> None:
"""Verify that the folder is created with umask."""
folder = os.path.join(self.colpath, "subfolder")
self.configure({"storage": {"filesystem_folder": folder, "folder_umask": "0077"}})
assert os.path.isdir(folder)
def test_fsync(self) -> None: def test_fsync(self) -> None:
"""Create a directory and file with syncing enabled.""" """Create a directory and file with syncing enabled."""
self.configure({"storage": {"_filesystem_fsync": "True"}}) self.configure({"storage": {"_filesystem_fsync": "True"}})