Skip to content

Commit 0b1b8e6

Browse files
authored
Upgrade deps (#1225)
1 parent f200ae2 commit 0b1b8e6

File tree

2 files changed

+312
-285
lines changed

2 files changed

+312
-285
lines changed

tests/otel_integrations/test_langchain.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@ def add(a: float, b: float) -> float:
107107
]
108108
)
109109

110-
spans = [s for s in spans if s['name'] == 'ChatOpenAI']
111-
attributes = spans[-1]['attributes']
112-
assert attributes['all_messages_events'] == snapshot(
110+
[span] = [s for s in spans if s['name'] == 'ChatOpenAI' and len(s['attributes']['all_messages_events']) == 4]
111+
assert span['attributes']['all_messages_events'] == snapshot(
113112
[
114113
{'content': "what's 123 + 456?", 'role': 'user'},
115114
{

0 commit comments

Comments
 (0)