Skip to content

Commit f0ad3eb

Browse files
committed
tests reformat
1 parent 3faa4c6 commit f0ad3eb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/test_tracing.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -580,9 +580,8 @@ def test_mixed_parent_context_when_merging(self):
580580

581581

582582
class TestAuthorizerInferredSpans(unittest.TestCase):
583-
584583
def setUp(self):
585-
patcher = patch('ddtrace.Span.finish', autospec=True)
584+
patcher = patch("ddtrace.Span.finish", autospec=True)
586585
self.mock_span_stop = patcher.start()
587586
self.addCleanup(patcher.stop)
588587

@@ -615,17 +614,19 @@ def test_create_inferred_span_from_authorizer_request_api_gateway_v1_event(self)
615614
self.assertEqual(span.get_tag("apiid"), "amddr1rix9")
616615
self.assertEqual(span.get_tag("apiname"), "amddr1rix9")
617616
self.assertEqual(span.get_tag("stage"), "dev")
618-
self.assertEqual(span.start, 1663295021.832) # request_time_epoch + integrationLatency
617+
self.assertEqual(
618+
span.start, 1663295021.832
619+
) # request_time_epoch + integrationLatency
619620
self.assertEqual(span.span_type, "http")
620621
self.assertEqual(span.get_tag(InferredSpanInfo.TAG_SOURCE), "self")
621622
self.assertEqual(span.get_tag(InferredSpanInfo.SYNCHRONICITY), "sync")
622623

623624
# checking the upstream_authorizer_span
624625
self.mock_span_stop.assert_called_once()
625626
args, kwargs = self.mock_span_stop.call_args_list[0]
626-
self.assertEqual(kwargs['finish_time'], 1663295021.832)
627+
self.assertEqual(kwargs["finish_time"], 1663295021.832)
627628
authorizer_span = args[0]
628-
self.assertEqual(authorizer_span.name, 'aws.apigateway.authorizer')
629+
self.assertEqual(authorizer_span.name, "aws.apigateway.authorizer")
629630
self.assertEqual(span.parent_id, authorizer_span.span_id)
630631

631632

0 commit comments

Comments
 (0)