test(codex-picker): raise max_models so count invariant survives catalog growth

Adding the 6 gpt-5.6 slugs to DEFAULT_CODEX_MODELS grew the curated codex
catalog to 11, above the test's max_models=10 cap. That truncated the
picker list to 10 while total_models reported 11, breaking the
total_models == len(models) assertion. The cap was an implicit
change-detector on catalog size; raise it to 100 so the list is never
truncated and the count-consistency invariant stays meaningful as new
gpt-5.x slugs land.
This commit is contained in:
Kshitij Kapoor 2026-07-10 00:41:03 +05:30 committed by kshitij
parent 4af484d3dd
commit 111544d544

View file

@ -95,7 +95,10 @@ def test_codex_picker_uses_live_codex_catalog(hermes_auth_only_env, tmp_path, mo
providers = list_authenticated_providers(
current_provider="openai-codex",
max_models=10,
# High cap so the curated catalog is never truncated — the assertion
# below checks count consistency, which only holds when max_models
# exceeds the catalog size (it grows as new gpt-5.x slugs land).
max_models=100,
)
codex = next(p for p in providers if p["slug"] == "openai-codex")