fix(test): add list-panes support to mock_herdr and fix environment overrides in tier3 integration tests
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user