Skip to main content
Glama
test_guard_render.py815 B
from pathlib import Path from mcp_agent_mail.guard import render_precommit_script, render_prepush_script class _DummyArchive: def __init__(self, root: Path) -> None: self.root = root def test_precommit_script_contains_gate_and_mode(tmp_path: Path) -> None: script = render_precommit_script(_DummyArchive(tmp_path)) # type: ignore[arg-type] assert "WORKTREES_ENABLED" in script assert "AGENT_MAIL_GUARD_MODE" in script assert "git\",\"diff\",\"--cached\",\"--name-status\",\"-M\",\"-z\"" in script def test_prepush_script_contains_gate_and_mode(tmp_path: Path) -> None: script = render_prepush_script(_DummyArchive(tmp_path)) # type: ignore[arg-type] assert "WORKTREES_ENABLED" in script assert "AGENT_MAIL_GUARD_MODE" in script assert "--no-ext-diff" in script

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dicklesworthstone/mcp_agent_mail'

If you have feedback or need assistance with the MCP directory API, please join our Discord server