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

Method test_emits_skill

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

Source from the content-addressed store, hash-verified

1026 assert fm["model"] == exp_model, f"{name}: expected {exp_model}, got {fm['model']}"
1027
1028 def test_emits_skill(self, synthetic_plugin: PluginSource, output_root: Path):
1029 CopilotAdapter(output_root=output_root).emit_plugin(synthetic_plugin)
1030 skill_path = output_root / ".copilot" / "skills" / "demo__hello" / "SKILL.md"
1031 assert skill_path.is_file()
1032
1033 fm, body = parse_frontmatter(skill_path.read_text())
1034 assert fm["name"] == "hello"
1035 assert fm["description"] == "Use when greeting users."
1036 assert "# Hello" in body
1037
1038 def test_emits_command_prompt_files(self, synthetic_plugin: PluginSource, output_root: Path):
1039 CopilotAdapter(output_root=output_root).emit_plugin(synthetic_plugin)

Callers

nothing calls this directly

Calls 3

CopilotAdapterClass · 0.90
parse_frontmatterFunction · 0.90
emit_pluginMethod · 0.45

Tested by

no test coverage detected