test(retry): include telemetry settings in runner fixture

The current upstream runner reads run_record_timings while constructing usage hooks. Its rate-limit test fixture predates that setting and raises AttributeError before reaching the mocked agent loop. Complete the shared fixture so both the existing rate-limit test and the non-OpenAI usage-limit regression exercise their intended paths.
This commit is contained in:
Samir Hanna Verza 2026-10-29 07:02:38 -03:00
parent 45fab2c5b3
commit 7570363318

View file

@ -57,6 +57,7 @@ async def _run_scan_raising(
extra_body=None,
),
runtime=types.SimpleNamespace(max_context_images=3),
telemetry=types.SimpleNamespace(run_record_timings=False),
)
monkeypatch.setattr(runner, "load_settings", lambda: settings)
monkeypatch.setattr(runner, "configure_sdk_model_defaults", lambda _settings: None)