File size: 556 Bytes
c5a913d | 1 2 3 4 5 6 7 8 9 10 11 12 13 | import pytest
from sibyl_memory_cli import setup as _setup
@pytest.fixture(autouse=True)
def _no_real_claude_cli(monkeypatch):
"""SAFETY + determinism: by default pretend the `claude` CLI is absent, so the
settings.json-fallback tests are deterministic and NO test ever shells out to the
real `claude mcp` (which would mutate this machine's actual MCP config). Tests that
exercise the CLI path re-patch _claude_cli + _run explicitly."""
monkeypatch.setattr(_setup.ClaudeCodeWirer, "_claude_cli", staticmethod(lambda: None))
yield
|