| 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"]) |