mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-24 16:54:43 +00:00
test(context): document Codex cache persistence coverage
This commit is contained in:
parent
8a0701ca48
commit
9a34cc91a5
1 changed files with 3 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue