Skip to content

Commit

Permalink
reformat test
Browse files Browse the repository at this point in the history
  • Loading branch information
GonzaloGuasch committed Dec 26, 2024
1 parent 4d90845 commit adeb7e9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -784,13 +784,14 @@ def test_response_attributes_noop(self):
mock_span.is_recording.return_value = False

attrs = {}
otel_wsgi.add_response_attributes(mock_span, "404 Not Found", {}, duration_attrs=attrs)
otel_wsgi.add_response_attributes(
mock_span, "404 Not Found", {}, duration_attrs=attrs
)

self.assertEqual(mock_span.set_attribute.call_count, 0)
self.assertEqual(mock_span.is_recording.call_count, 2)
self.assertEqual(attrs[SpanAttributes.HTTP_STATUS_CODE], 404)


def test_credential_removal(self):
self.environ["HTTP_HOST"] = "username:password@mock"
self.environ["PATH_INFO"] = "/status/200"
Expand Down

0 comments on commit adeb7e9

Please sign in to comment.