Skip to content

Commit 11495bc

Browse files
committed
style: ruff format test_aws_lambda.py
1 parent 6db2c9c commit 11495bc

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

tests/integrations/aws_lambda/test_aws_lambda.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,7 @@ def test_span_streaming(lambda_client, test_environment):
837837
assert segment_span["name"] == "BasicOkSpanStreaming"
838838
_assert_segment_span_attrs(segment_span["attributes"], "BasicOkSpanStreaming")
839839
assert (
840-
_get_span_attr(segment_span["attributes"], "messaging.batch.message_count")
841-
== 1
840+
_get_span_attr(segment_span["attributes"], "messaging.batch.message_count") == 1
842841
)
843842

844843
# Error case: an error event plus an errored segment span.
@@ -865,12 +864,9 @@ def test_span_streaming(lambda_client, test_environment):
865864

866865
assert segment_span["name"] == "RaiseErrorSpanStreaming"
867866
assert segment_span["status"] == "error"
868-
_assert_segment_span_attrs(
869-
segment_span["attributes"], "RaiseErrorSpanStreaming"
870-
)
867+
_assert_segment_span_attrs(segment_span["attributes"], "RaiseErrorSpanStreaming")
871868
assert (
872-
_get_span_attr(segment_span["attributes"], "messaging.batch.message_count")
873-
== 1
869+
_get_span_attr(segment_span["attributes"], "messaging.batch.message_count") == 1
874870
)
875871

876872
# Trace continuation: an incoming sentry-trace header is continued by
@@ -903,9 +899,7 @@ def test_span_streaming(lambda_client, test_environment):
903899
segment_span = segment_spans[0]
904900
assert segment_span["trace_id"] == trace_id
905901
assert segment_span["name"] == "RaiseErrorSpanStreaming"
906-
_assert_segment_span_attrs(
907-
segment_span["attributes"], "RaiseErrorSpanStreaming"
908-
)
902+
_assert_segment_span_attrs(segment_span["attributes"], "RaiseErrorSpanStreaming")
909903

910904

911905
def test_span_streaming_request_attributes(lambda_client, test_environment):
@@ -979,4 +973,3 @@ def test_span_streaming_request_attributes(lambda_client, test_environment):
979973
_get_span_attr(attrs, "url.query")
980974
== "page=2&tracking=%5BFiltered%5D&token=%5BFiltered%5D"
981975
)
982-

0 commit comments

Comments
 (0)