Skip to content

Commit fac1719

Browse files
Fix ruff formatting in test_message_utils.py
Collapse single-element lists onto one line per ruff format rules. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b39c5bb commit fac1719

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎tests/observability/core/test_message_utils.py‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,7 @@ def test_output_message_custom_finish_reason(self):
300300
def test_serialized_output_includes_finish_reason(self):
301301
"""finish_reason is always present in serialized output (required per OTel spec)."""
302302
wrapper = OutputMessages(
303-
messages=[
304-
OutputMessage(role=MessageRole.ASSISTANT, parts=[TextPart(content="Hi")])
305-
]
303+
messages=[OutputMessage(role=MessageRole.ASSISTANT, parts=[TextPart(content="Hi")])]
306304
)
307305
result = serialize_messages(wrapper)
308306
parsed = json.loads(result)
@@ -434,9 +432,7 @@ def test_tool_call_message(self):
434432
messages=[
435433
OutputMessage(
436434
role=MessageRole.ASSISTANT,
437-
parts=[
438-
ToolCallRequestPart(name="search", id="c1", arguments={"q": "test"})
439-
],
435+
parts=[ToolCallRequestPart(name="search", id="c1", arguments={"q": "test"})],
440436
finish_reason=FinishReason.TOOL_CALL.value,
441437
)
442438
]

0 commit comments

Comments
 (0)