@@ -24,7 +24,7 @@ import pytest_asyncio
|
||||
|
||||
from grimoire.services import notes as notes_svc
|
||||
from grimoire.services import task_claims as tc
|
||||
from tests.helpers import ensure_user, http_sink
|
||||
from tests.helpers import ensure_user, http_sink, need_tools
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
@@ -235,12 +235,9 @@ def test_a_dead_claim_on_finished_work_is_not_news():
|
||||
|
||||
def _run_hook(script, event, tmp_path, port):
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
|
||||
for tool in ("bash", "curl"):
|
||||
if shutil.which(tool) is None:
|
||||
pytest.skip(f"hook runtime tool {tool!r} not installed")
|
||||
need_tools("bash", "curl")
|
||||
env = {"PATH": os.environ["PATH"], "HOME": str(tmp_path), "TMPDIR": str(tmp_path),
|
||||
"GRIMOIRE_URL": f"http://127.0.0.1:{port}", "GRIMOIRE_TOKEN": "t",
|
||||
"CLAUDE_PROJECT_DIR": str(tmp_path)}
|
||||
|
||||
Reference in New Issue
Block a user