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

Method test_emits_native_subagent

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

Source from the content-addressed store, hash-verified

866 assert fm["name"] == "demo__hello"
867
868 def test_emits_native_subagent(self, synthetic_plugin: PluginSource, output_root: Path):
869 GeminiAdapter(output_root=output_root).emit_plugin(synthetic_plugin)
870 agent_md = output_root / "agents" / "demo__greeter.md"
871 assert agent_md.is_file()
872 fm, _ = parse_frontmatter(agent_md.read_text())
873 # opus -> gemini-2.5-pro
874 assert fm["model"] == "gemini-2.5-pro"
875
876 def test_inline_command_when_body_is_small(
877 self, synthetic_plugin: PluginSource, output_root: Path

Callers

nothing calls this directly

Calls 3

GeminiAdapterClass · 0.90
parse_frontmatterFunction · 0.90
emit_pluginMethod · 0.45

Tested by

no test coverage detected