MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / test_scene_add_and_show

Method test_scene_add_and_show

tests/test_usage_modes.py:108–127  ·  view source on GitHub ↗
(self, tmp_path: Path)

Source from the content-addressed store, hash-verified

106 assert "Usage: uncommon-route init" in r.stdout
107
108 def test_scene_add_and_show(self, tmp_path: Path) -> None:
109 env = {"UNCOMMON_ROUTE_DATA_DIR": str(tmp_path / ".uncommon-route")}
110
111 add = run_cli(
112 [
113 "scene",
114 "add",
115 "coding",
116 "anthropic/claude-sonnet-4.6",
117 "openai/gpt-5.2",
118 ],
119 env=env,
120 )
121 assert add.returncode == 0
122
123 show = run_cli(["scene", "show", "coding"], env=env)
124 assert show.returncode == 0
125 assert "Scene: coding" in show.stdout
126 assert "Primary: anthropic/claude-sonnet-4.6" in show.stdout
127 assert "Model pool: anthropic/claude-sonnet-4.6 -> openai/gpt-5.2" in show.stdout
128
129 def test_route_text(self) -> None:
130 r = run_cli(["route", "what is 2+2"])

Callers

nothing calls this directly

Calls 1

run_cliFunction · 0.85

Tested by

no test coverage detected