backup: fix Windows-incompat test — test_log_operation_handles_path_objects asserted a hardcoded POSIX '/some/project'; default=str serializes with platform separators, so compare against str(Path(...)). Pre-existing (S284 195b9f0), the sole repo-wide Windows CI red

This commit is contained in:
AIOSAI
2026-07-09 16:53:14 -07:00
parent 9a06a2fa47
commit 1edea552bf
+3 -1
View File
@@ -144,7 +144,9 @@ class TestLogOperation:
log_file = log_dir / "operations.jsonl"
if log_file.exists():
entry = json.loads(log_file.read_text(encoding="utf-8").strip())
assert entry["project_root"] == "/some/project"
# default=str serializes via str(Path(...)) — platform-native separators,
# so compare against the same (POSIX "/some/project", Windows "\some\project").
assert entry["project_root"] == str(Path("/some/project"))
class TestEnsureAndGetPath: