Skip to content

Commit 316bf50

Browse files
xumapleclaude
andcommitted
Use exact model string in FakeLiteLlm test instead of wildcard regex
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7540f82 commit 316bf50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/contrib/google_adk_agents/test_google_adk_agents.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,11 +927,11 @@ async def acompletion(self, *args: Any, **kwargs: Any) -> ModelResponse:
927927
return self.completion(*args, **kwargs)
928928

929929
class FakeLiteLlm(LiteLlm):
930-
"""LiteLlm subclass that handles fake/.* model names for testing."""
930+
"""LiteLlm subclass that supports the fake/test-model name for testing."""
931931

932932
@classmethod
933933
def supported_models(cls) -> list[str]:
934-
return [r"fake/.*"]
934+
return ["fake/test-model"]
935935

936936
# Register our fake provider with litellm
937937
litellm_module.custom_provider_map = [

0 commit comments

Comments
 (0)