test: add codex metadata=False case for reasoning efforts

- Covers the openai-codex + supports_reasoning=False path now that
  Codex routes through _models_dev_reasoning_efforts.
- Mirrors the existing false-suppression test for symmetry.
- 9/9 tests pass.
This commit is contained in:
Hermes Agent
2026-05-27 22:26:24 -06:00
parent b2220a54b5
commit 07f61b72fb
+13
View File
@@ -95,6 +95,19 @@ def test_codex_gpt55_uses_models_dev_including_xhigh(monkeypatch):
assert "xhigh" in result
def test_codex_metadata_false_returns_empty(monkeypatch):
_install_fake_models_dev(
monkeypatch,
lambda provider, model: SimpleNamespace(supports_reasoning=False),
)
import api.config as cfg
assert cfg.resolve_model_reasoning_efforts(
"gpt-5.5", provider_id="openai-codex"
) == []
def test_copilot_gpt55_caps_at_high(monkeypatch):
import api.config as cfg