Align conftest mock herdr and unit test assertions with Claude's simplified session-based isolation and native herdr command updates

This commit is contained in:
2026-07-20 07:42:05 +09:00
parent cccc30a8ac
commit 6df4b03661
13 changed files with 312 additions and 115 deletions
+2 -2
View File
@@ -108,13 +108,13 @@ def test_resume_resolve_herdr_workspace_default(mam_sandbox):
"""Test resolve_herdr_workspace fallback behavior when session is not in YAML."""
res = run_lib_func(mam_sandbox, "resolve_herdr_workspace", "non-existent-session")
assert res.returncode == 0
assert res.stdout.strip() == "w1"
assert res.stdout.strip() == "default"
def test_resume_resolve_herdr_workspace_env(mam_sandbox):
"""Test resolve_herdr_workspace fallback to HERDR_SERVER_NAME env var."""
res = run_lib_func(mam_sandbox, "resolve_herdr_workspace", "non-existent-session", env={"HERDR_SERVER_NAME": "custom_server"})
assert res.returncode == 0
assert res.stdout.strip() == "w1" # default mapping to w1 unless resolved from workspace list
assert res.stdout.strip() == "custom_server"
def test_resume_find_workspace_uuid_empty(mam_sandbox):
"""Test find_workspace_uuid returns empty string for non-existent workspace."""