nendo
|
c59ea7790c
|
test: add coverage for sync session handler, sync watcher, device masking, and auth utils
- test_sync_sessions_handler: increment_operations_completed (atomic
counter, no-op on missing), NoResultFound on update/complete/fail
with nonexistent session
- test_sync_watcher: _extract_device_and_platform path parsing (valid,
non-incoming, too few parts, nested, outside base), _ensure_conflicts_dir
creation and idempotency, process_sync_changes empty/disabled
- test_sync (endpoints): negotiate with untracked saves (no_op),
server saves not mentioned by client (download), deleted-by-client
detection (skip), complete on FAILED/CANCELLED session (400),
trigger_push_pull passes session_id in enqueue kwargs
- test_device (endpoints): sync_config SSH credential masking
(ssh_password/ssh_key_path -> "********"), null config passthrough,
config without sensitive fields
- test_utils_auth: _get_device_name UA parsing (browser+OS, browser
only, OS only, neither), create_or_find_web_device (creates new,
returns existing on fingerprint match, updates last_seen)
|
2026-03-16 11:19:30 +09:00 |
|