diff --git a/tests/test_codex_execution_paths.py b/tests/test_codex_execution_paths.py index 2a6044294f..de33a0b913 100644 --- a/tests/test_codex_execution_paths.py +++ b/tests/test_codex_execution_paths.py @@ -112,7 +112,7 @@ def test_cron_run_job_codex_path_handles_internal_401_refresh(monkeypatch): _Codex401ThenSuccessAgent.last_init = {} success, output, final_response, error = cron_scheduler.run_job( - {"id": "job-1", "name": "Codex Refresh Test", "prompt": "ping"} + {"id": "job-1", "name": "Codex Refresh Test", "prompt": "ping", "model": "gpt-5.3-codex"} ) assert success is True @@ -139,6 +139,7 @@ def test_gateway_run_agent_codex_path_handles_internal_401_refresh(monkeypatch): }, ) monkeypatch.setenv("HERMES_TOOL_PROGRESS", "false") + monkeypatch.setenv("HERMES_MODEL", "gpt-5.3-codex") _Codex401ThenSuccessAgent.refresh_attempts = 0 _Codex401ThenSuccessAgent.last_init = {}