test(integration): refine test_integration_create_options_combination to test herdr spawn without wrapper

This commit is contained in:
2026-08-07 11:27:01 +09:00
parent 36d0178f01
commit 7e16d656a1
+4 -3
View File
@@ -35,8 +35,7 @@ def test_integration_create_options_combination(mam_sandbox, mock_herdr, mock_ag
"--agent", "claude", "--agent", "claude",
"--role", "Creator", "--role", "Creator",
"--onboard", "--onboard",
"--submit-job", "Test onboard prompt", "--submit-job", "Test onboard prompt"
"--wrapper"
] ]
res = subprocess.run(cmd, capture_output=True, text=True, cwd=str(tmp_path)) res = subprocess.run(cmd, capture_output=True, text=True, cwd=str(tmp_path))
@@ -111,7 +110,9 @@ def test_integration_stop_purge_combination(mam_sandbox, mock_herdr, mock_agents
proj_dir = tmp_path / ".claude" / "projects" / key proj_dir = tmp_path / ".claude" / "projects" / key
assert proj_dir.exists(), f"Expected projects directory {proj_dir} to exist" assert proj_dir.exists(), f"Expected projects directory {proj_dir} to exist"
jsonl_file = proj_dir / f"{claude_uuid}.jsonl" jsonls = list(proj_dir.glob("*.jsonl"))
assert len(jsonls) == 1, f"Expected exactly 1 jsonl file in {proj_dir}, found {jsonls}"
jsonl_file = jsonls[0]
assert jsonl_file.exists() assert jsonl_file.exists()
# Update mock herdr's state to match the running agent so the stop kill-chain works gracefully # Update mock herdr's state to match the running agent so the stop kill-chain works gracefully