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:
2026-02-04 21:56:25 -08:00
parent 3214b48ae8
commit 95614b6eec
2 changed files with 123 additions and 3 deletions

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."""