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

Method test_route_mode_flag

tests/test_usage_modes.py:146–150  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

144 assert "latency_ms" in data
145
146 def test_route_mode_flag(self) -> None:
147 r = run_cli(["route", "--json", "--mode", "fast", "explain quicksort in detail"])
148 assert r.returncode == 0
149 data = json.loads(r.stdout)
150 assert data["mode"] == "fast"
151
152 def test_route_uses_persisted_default_mode(self, tmp_path: Path) -> None:
153 env = {"UNCOMMON_ROUTE_DATA_DIR": str(tmp_path / ".uncommon-route")}

Callers

nothing calls this directly

Calls 1

run_cliFunction · 0.85

Tested by

no test coverage detected