Skip to content

Commit f520920

Browse files
cursoragentclaude
andcommitted
tests(langchain): remove redundant chat span assertion
Co-Authored-By: gpt-5.3-codex-high <noreply@anthropic.com>
1 parent f1f3584 commit f520920

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/integrations/langchain/test_langchain.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,6 @@ def test_tool_execution_span(
336336
assert chat_spans[1]["origin"] == "auto.ai.langchain"
337337
assert tool_exec_span["origin"] == "auto.ai.langchain"
338338

339-
# We can't guarantee anything about the "shape" of the langchain execution graph
340-
assert len(list(x for x in tx["spans"] if x["op"] == "gen_ai.chat")) > 0
341-
342339
# Token usage is only available in newer versions of langchain (v0.2+)
343340
# where usage_metadata is supported on AIMessageChunk
344341
if "gen_ai.usage.input_tokens" in chat_spans[0]["data"]:

0 commit comments

Comments
 (0)