From 671632fe59a53183ba657a75b8136d08bbc0e56d Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 15 Sep 2026 03:53:07 +0000 Subject: [PATCH] Fix Windows spawn test path comparison. Compare workspace_dir as Path objects so native Windows backslashes in config_json match the compiled workspace. Co-authored-by: XYAI Labs --- tests/unit/test_colleague_spawn.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_colleague_spawn.py b/tests/unit/test_colleague_spawn.py index 0707637e..107504d3 100644 --- a/tests/unit/test_colleague_spawn.py +++ b/tests/unit/test_colleague_spawn.py @@ -2,6 +2,7 @@ from __future__ import annotations +import json from pathlib import Path from octop.modules.org_os.compiler.compile import compile_blueprint @@ -38,4 +39,5 @@ def test_spawn_writes_registry_and_agent_row(tmp_path: Path) -> None: assert row is not None assert row.name == "Policy Analyst" assert row.system_prompt and "Policy Analyst" in row.system_prompt - assert compiled.workspace.as_posix() in (row.config_json or "") + cfg = json.loads(row.config_json or "{}") + assert Path(cfg["workspace_dir"]) == compiled.workspace