MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_engine_headless

Function test_engine_headless

tests/test_stickers_command.py:50–58  ·  view source on GitHub ↗
(tmp_path, monkeypatch)

Source from the content-addressed store, hash-verified

48
49
50async def test_engine_headless(tmp_path, monkeypatch):
51 monkeypatch.setattr(webbrowser, "open", lambda url: True)
52 reg = CommandRegistry()
53 reg.register(STICKERS_COMMAND)
54 ctx = _ctx(tmp_path)
55 eng = CommandEngine(registry=reg, workspace_root=tmp_path, context=ctx)
56 result = await eng.execute("/stickers")
57 assert result.success is True
58 assert result.text.startswith("Opening sticker page")
59
60
61def test_registered_metadata_safety_dispatch():

Callers

nothing calls this directly

Calls 5

registerMethod · 0.95
executeMethod · 0.95
CommandRegistryClass · 0.90
CommandEngineClass · 0.90
_ctxFunction · 0.70

Tested by

no test coverage detected