From 4eadabb8ea94e3257bfe522702b1082b689856b1 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Tue, 28 Jul 2026 09:36:17 -0700 Subject: [PATCH] test: add BadRequestError to the fake openai module fixture _transcribe_openai now imports BadRequestError for the container-retry path; the managed-gateway fake module needs to provide it. --- tests/tools/test_managed_media_gateways.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/tools/test_managed_media_gateways.py b/tests/tools/test_managed_media_gateways.py index d7d35e4b7b69..6dc76374d5ab 100644 --- a/tests/tools/test_managed_media_gateways.py +++ b/tests/tools/test_managed_media_gateways.py @@ -169,6 +169,7 @@ def _install_fake_openai_module(captured, transcription_response=None): APIError=Exception, APIConnectionError=Exception, APITimeoutError=Exception, + BadRequestError=type("BadRequestError", (Exception,), {}), ) sys.modules["openai"] = fake_module