Skip to content

Commit 045e931

Browse files
committed
fix: use Path comparison for cross-platform rclone command test
- Compare Path objects instead of strings in test_project_sync_success - Fixes Windows test failure where paths use backslashes - Ensures test passes on Windows, Linux, and macOS Signed-off-by: Claude <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>
1 parent d754cf9 commit 045e931

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_rclone_commands.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ def test_project_sync_success(mock_run):
130130
cmd = mock_run.call_args[0][0]
131131
assert cmd[0] == "rclone"
132132
assert cmd[1] == "sync"
133-
assert cmd[2] == "/tmp/research"
133+
# Use Path for cross-platform comparison (Windows uses backslashes)
134+
assert Path(cmd[2]) == Path("/tmp/research")
134135
assert cmd[3] == "basic-memory-cloud:my-bucket/research"
135136
assert "--dry-run" in cmd
136137

0 commit comments

Comments
 (0)