(tmp_path, monkeypatch)
| 48 | |
| 49 | |
| 50 | async 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 | |
| 61 | def test_registered_metadata_safety_dispatch(): |
nothing calls this directly
no test coverage detected