test(#4022): update sprint42 runtime-route assertion for target_model threading
#4022 now calls resolve_runtime_provider(requested=..., target_model=...) so per-model base_url normalization applies; the sprint42 test pinned the old single-arg signature. Updated the assertion to expect target_model (pre-existing test, not a behavior regression — confirmed it passes on master only because the call signature changed here).
This commit is contained in:
@@ -256,7 +256,11 @@ class TestRuntimeRouteInjection(unittest.TestCase):
|
||||
stream_id=fake_stream_id,
|
||||
)
|
||||
|
||||
resolve_runtime_provider.assert_called_once_with(requested="openai-codex")
|
||||
# #4022: the resolver is now called with the target model too so per-model
|
||||
# base_url normalization (e.g. OpenCode-Go /v1 stripping) is applied.
|
||||
resolve_runtime_provider.assert_called_once_with(
|
||||
requested="openai-codex", target_model="gpt-5.4"
|
||||
)
|
||||
init_kwargs = captured["init_kwargs"]
|
||||
self.assertEqual(init_kwargs["api_mode"], "codex_responses")
|
||||
self.assertEqual(init_kwargs["acp_command"], "codex")
|
||||
|
||||
Reference in New Issue
Block a user