We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbb0bd1 commit 10b6d4bCopy full SHA for 10b6d4b
1 file changed
tests/integrations/pydantic_ai/test_pydantic_ai.py
@@ -1818,11 +1818,10 @@ async def mock_map_tool_result_part(part):
1818
# MCP tool might raise if not fully mocked, that's okay
1819
pass
1820
1821
- events_list = items
1822
- if len(events_list) == 0:
+ if len(items) == 0:
1823
pytest.skip("No events captured, MCP test setup incomplete")
1824
1825
- (transaction,) = events_list
+ (transaction,) = (item.payload for item in items if item.type == "transaction")
1826
transaction["spans"]
1827
else:
1828
events = capture_events()
0 commit comments