Skip to content

Commit 4dc9f04

Browse files
keep old is not None assertion
1 parent ac173ce commit 4dc9f04

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/integrations/langchain/test_langchain.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ def test_langchain_agent(
306306
# Verify that available tools are always recorded regardless of PII settings
307307
for chat_span in chat_spans:
308308
tools_data = chat_span["data"][SPANDATA.GEN_AI_REQUEST_AVAILABLE_TOOLS]
309+
assert tools_data is not None, (
310+
"Available tools should always be recorded regardless of PII settings"
311+
)
309312
assert "get_word_length" in tools_data
310313

311314

0 commit comments

Comments
 (0)