Commit Graph

13 Commits

Author SHA1 Message Date
95614b6eec 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.
2026-02-04 21:56:25 -08:00
fb9dcbd392 Refactor: split rsync tests into separate module
Move all rsync-related tests (44 tests) from test_fs.py to new
test_rsync.py module for better organization:
- TestRsync (14 tests)
- TestRsyncBasic (5 tests)
- TestParseRsyncOutput (17 tests)
- TestRsyncExt (8 tests)

Extract shared helper functions to conftest.py to eliminate duplication:
- create_file(), create_dir(), relpath()
- check_identical_file()
- common_fs_dirs fixture

This improves test organization and maintainability by grouping related
tests and removing code duplication between test modules.
2026-02-04 20:23:51 -08:00
fe48010fc9 Add comprehensive tests for rsync output parsing
Implements TestParseRsyncOutput class with 17 tests covering all code
paths in _parse_rsync_output() function. Tests cover deletions, file/
directory/symlink creation, rewrites, metadata updates (permissions,
ownership, timestamps), and error handling for invalid input.
2026-02-04 19:36:24 -08:00
ee1df4cb21 Update tests 2026-02-04 19:31:29 -08:00
62fcfe5881 Add running backup lock and marker of finished backup 2023-05-06 23:06:15 -07:00
2631b78d4d Handle socket files 2021-11-15 23:12:51 +03:00
84546243cb Add setup.py 2021-11-13 07:39:23 +03:00
7395268e97 Add processing of changed files 2021-11-09 00:43:18 +03:00
1ed1032f42 Add nested dir hardlink test 2021-11-02 23:45:11 +03:00
f01d24f1bd Fix copying symlinks in Linux 2021-10-23 21:07:14 +03:00
862c20ed24 Add rsync support 2021-06-20 18:40:03 +03:00
17826c6978 Update hardlink tests 2021-06-16 19:42:32 +03:00
11c8197dba Add tests for fs.hardlink_dir() 2021-06-15 23:05:09 +03:00