Add metadata preservation tests for copy_direntry

Verify that timestamps, permissions, and ownership are correctly
preserved when copying files, directories, and symlinks. Tests account
for filesystem behavior where reading a file updates its atime by
capturing source timestamps before the copy operation.
This commit is contained in:
snegov committed 2026-02-04 21:56:25 -08:00
1 parent 3214b48ae8
commit 95614b6eec
2 files changed
+123 -3

No files matched your search

-3
View File
@@ -175,9 +175,6 @@ class TestRsync:
assert os.path.lexists(dst_fpath)
check_identical_file(src_fpath, dst_fpath)
# TODO add tests for changing ownership
# TODO add tests for changing times (?)
class TestRsyncBasic:
"""Test suite for basic rsync functionality."""