Skip to content

Commit

Permalink
groq[patch]: update standard tests (#27744)
Browse files Browse the repository at this point in the history
- Add xfail on integration test (fails [> 50% of the
time](https://github.com/langchain-ai/langchain/actions/workflows/scheduled_test.yml));
- Remove xfail on passing unit test.
  • Loading branch information
ccurme authored Oct 30, 2024
1 parent 98bb3a0 commit bd5ea18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 9 additions & 0 deletions libs/partners/groq/tests/integration_tests/test_standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,12 @@ def test_tool_calling_with_no_arguments(self, model: BaseChatModel) -> None:
)
def test_tool_message_histories_string_content(self, model: BaseChatModel) -> None:
super().test_tool_message_histories_string_content(model)

@pytest.mark.xfail(
reason=(
"Sometimes fails with 'Failed to call a function. "
"Please adjust your prompt.'"
)
)
def test_bind_runnables_as_tools(self, model: BaseChatModel) -> None:
super().test_bind_runnables_as_tools(model)
5 changes: 0 additions & 5 deletions libs/partners/groq/tests/unit_tests/test_standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from typing import Type

import pytest
from langchain_core.language_models import BaseChatModel
from langchain_standard_tests.unit_tests.chat_models import (
ChatModelUnitTests,
Expand All @@ -15,7 +14,3 @@ class TestGroqStandard(ChatModelUnitTests):
@property
def chat_model_class(self) -> Type[BaseChatModel]:
return ChatGroq

@pytest.mark.xfail(reason="Groq does not support tool_choice='any'")
def test_bind_tool_pydantic(self, model: BaseChatModel) -> None:
super().test_bind_tool_pydantic(model)

0 comments on commit bd5ea18

Please sign in to comment.