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

Method test_route_json

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

Source from the content-addressed store, hash-verified

134 assert "SIMPLE" in r.stdout
135
136 def test_route_json(self) -> None:
137 r = run_cli(["route", "--json", "explain quicksort in detail"])
138 assert r.returncode == 0
139 data = json.loads(r.stdout)
140 assert data["mode"] == "auto"
141 assert "model" in data
142 assert "tier" in data
143 assert "confidence" in data
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"])

Callers

nothing calls this directly

Calls 1

run_cliFunction · 0.85

Tested by

no test coverage detected