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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user