Skip to content

Commit 3cdf557

Browse files
devin-ai-integration[bot]bot_apk
andcommitted
style: apply ruff format to test assertions
Co-Authored-By: bot_apk <apk@cognition.ai>
1 parent 0081ad5 commit 3cdf557

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

unit_tests/sources/streams/concurrent/test_concurrent_read_processor.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,10 @@ def test_on_exception_return_trace_message_and_on_stream_complete_return_stream_
578578
exception_messages = list(handler.on_exception(exception))
579579
assert len(exception_messages) == 1
580580
assert "RuntimeError" in exception_messages[0].trace.error.stack_trace
581-
assert exception_messages[0].trace.error.message == f"An unexpected error occurred in stream {_STREAM_NAME}: RuntimeError"
581+
assert (
582+
exception_messages[0].trace.error.message
583+
== f"An unexpected error occurred in stream {_STREAM_NAME}: RuntimeError"
584+
)
582585

583586
assert list(
584587
handler.on_partition_complete_sentinel(
@@ -799,7 +802,10 @@ def test_on_exception_non_ate_uses_templated_message_with_correct_failure_type(s
799802

800803
trace_error = exception_messages[0].trace.error
801804
# User-facing message uses safe template (no raw exception text)
802-
assert trace_error.message == f"An unexpected error occurred in stream {_STREAM_NAME}: ValueError"
805+
assert (
806+
trace_error.message
807+
== f"An unexpected error occurred in stream {_STREAM_NAME}: ValueError"
808+
)
803809
# Stack trace comes from the inner exception, not the StreamThreadException wrapper
804810
assert "ValueError" in trace_error.stack_trace
805811
assert "StreamThreadException" not in trace_error.stack_trace

0 commit comments

Comments
 (0)