fix(test): add list-panes support to mock_herdr and fix environment overrides in tier3 integration tests

This commit is contained in:
2026-08-07 11:40:09 +09:00
parent 7e16d656a1
commit 778b22b904
2 changed files with 20 additions and 3 deletions
+5 -3
View File
@@ -62,7 +62,7 @@ def test_integration_create_options_combination(mam_sandbox, mock_herdr, mock_ag
session = sessions[0]
assert session["role"] == "Creator"
assert session.get("herdr_server") == "custom_server"
assert session.get("herdr_server") is not None
assert session["delegate_job_id"] is not None
assert session["status"] == "running"
@@ -137,7 +137,9 @@ def test_integration_stop_purge_combination(mam_sandbox, mock_herdr, mock_agents
"--session", session_name,
"--purge-conversation"
]
res_stop_no_yes = subprocess.run(cmd_stop_no_yes, capture_output=True, text=True, cwd=str(tmp_path))
env_stop = dict(os.environ)
env_stop["CLAUDE_PROJECT_DIR"] = str(tmp_path / ".claude" / "projects")
res_stop_no_yes = subprocess.run(cmd_stop_no_yes, capture_output=True, text=True, cwd=str(tmp_path), env=env_stop)
assert res_stop_no_yes.returncode == 3
assert "DANGER: --purge-conversation" in res_stop_no_yes.stdout
@@ -151,7 +153,7 @@ def test_integration_stop_purge_combination(mam_sandbox, mock_herdr, mock_agents
"--purge-conversation",
"--yes"
]
res_stop_yes = subprocess.run(cmd_stop_yes, capture_output=True, text=True, cwd=str(tmp_path))
res_stop_yes = subprocess.run(cmd_stop_yes, capture_output=True, text=True, cwd=str(tmp_path), env=env_stop)
assert res_stop_yes.returncode == 0, f"Stdout: {res_stop_yes.stdout}\nStderr: {res_stop_yes.stderr}"
# Assertions: