MCPcopy
hub / github.com/wshobson/agents / test_command_becomes_skill

Method test_command_becomes_skill

tools/tests/test_adapters.py:232–236  ·  view source on GitHub ↗
(self, synthetic_plugin: PluginSource, output_root: Path)

Source from the content-addressed store, hash-verified

230 assert (output_root / ".codex" / "agents" / "demo__worker.toml").is_file()
231
232 def test_command_becomes_skill(self, synthetic_plugin: PluginSource, output_root: Path):
233 CodexAdapter(output_root=output_root).emit_plugin(synthetic_plugin)
234 # Command should be present as a skill (Codex deprecated ~/.codex/prompts/)
235 cmd_skill = output_root / ".codex" / "skills" / "demo__say-hi" / "SKILL.md"
236 assert cmd_skill.is_file()
237
238 def test_skill_command_name_collision_namespaced(self, tmp_path: Path, output_root: Path):
239 """A skill and command with the same name in one plugin must NOT overwrite."""

Callers

nothing calls this directly

Calls 2

CodexAdapterClass · 0.90
emit_pluginMethod · 0.45

Tested by

no test coverage detected