test(context): document Codex cache persistence coverage

This commit is contained in:
sbe27 2026-07-10 03:03:51 +02:00 committed by Teknium
parent 8a0701ca48
commit 9a34cc91a5

View file

@ -571,7 +571,9 @@ class TestCodexOAuthContextLength:
fake_response.json.return_value = {
"models": [{"slug": "gpt-5.6-terra", "context_window": 372_000}]
}
# Exercise real persistence here: this test verifies that a live value
# replaces the stale on-disk entry. Failure-path tests below mock the
# writer because they assert that fallback values are not persisted.
with patch("agent.model_metadata.requests.get", return_value=fake_response) as mock_get:
ctx = mm.get_model_context_length(
model="gpt-5.6-terra",