Skip to content

Commit

Permalink
skip current flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gnufede committed Feb 3, 2025
1 parent 94a6d91 commit 1902a89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/contrib/langchain/test_langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,15 @@ def test_ai21_llm_sync(langchain_community, request_vcr):
llm.invoke("Why does everyone in Bikini Bottom hate Plankton?")


@flaky(until=1735812000, reason="Problematic test that needs fixing")
@pytest.mark.snapshot(ignores=IGNORE_FIELDS)
def test_openai_chat_model_sync_call_langchain_openai(langchain_openai, request_vcr):
chat = langchain_openai.ChatOpenAI(temperature=0, max_tokens=256)
with request_vcr.use_cassette("openai_chat_completion_sync_call.yaml"):
chat.invoke(input=[langchain.schema.HumanMessage(content="When do you use 'whom' instead of 'who'?")])


@flaky(until=1735812000, reason="Problematic test that needs fixing")
@pytest.mark.skipif(LANGCHAIN_VERSION < (0, 3), reason="Requires at least LangChain 0.3")
@pytest.mark.snapshot(ignores=IGNORE_FIELDS)
def test_openai_chat_model_sync_generate(langchain_openai, request_vcr):
Expand All @@ -128,6 +130,7 @@ def test_openai_chat_model_sync_generate(langchain_openai, request_vcr):
)


@flaky(until=1735812000, reason="Problematic test that needs fixing")
@pytest.mark.snapshot(ignores=IGNORE_FIELDS)
def test_openai_chat_model_vision_generate(langchain_openai, request_vcr):
"""
Expand Down Expand Up @@ -472,6 +475,7 @@ def test_streamed_llm(langchain_openai, streamed_response_responder):
pass


@flaky(until=1735812000, reason="Problematic test that needs fixing")
@pytest.mark.snapshot(
ignores=IGNORE_FIELDS,
token="tests.contrib.langchain.test_langchain.test_streamed_chain",
Expand All @@ -496,6 +500,7 @@ async def test_astreamed_chain(langchain_core, langchain_openai, async_streamed_
pass


@flaky(until=1735812000, reason="Problematic test that needs fixing")
@pytest.mark.snapshot(
ignores=IGNORE_FIELDS,
token="tests.contrib.langchain.test_langchain.test_streamed_chat",
Expand Down

0 comments on commit 1902a89

Please sign in to comment.