Skip to content

Commit 3422f7b

Browse files
samuelcolvinocelotl
authored andcommitted
linting
1 parent 60b91f5 commit 3422f7b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py

+10-4
Original file line numberDiff line numberDiff line change
@@ -695,14 +695,15 @@ def test_http_custom_response_headers_not_in_span_attributes(self):
695695

696696
class TestHTTPAppWithCustomHeadersParameters(TestBase):
697697
"""Minimal tests here since the behavior of this logic is tested above and in the ASGI tests."""
698+
698699
def setUp(self):
699700
super().setUp()
700701
self.app = self._create_app()
701702
otel_fastapi.FastAPIInstrumentor().instrument_app(
702703
self.app,
703704
http_capture_headers_server_request=["a.*", "b.*"],
704705
http_capture_headers_server_response=["c.*", "d.*"],
705-
http_capture_headers_sanitize_fields=[".*secret.*"]
706+
http_capture_headers_sanitize_fields=[".*secret.*"],
706707
)
707708
self.client = TestClient(self.app)
708709

@@ -728,9 +729,14 @@ async def _():
728729
return app
729730

730731
def test_http_custom_request_headers_in_span_attributes(self):
731-
resp = self.client.get("/foobar", headers={
732-
"apple": "red", "banana-secret": "yellow", "fig": "green"
733-
})
732+
resp = self.client.get(
733+
"/foobar",
734+
headers={
735+
"apple": "red",
736+
"banana-secret": "yellow",
737+
"fig": "green",
738+
},
739+
)
734740
self.assertEqual(200, resp.status_code)
735741
span_list = self.memory_exporter.get_finished_spans()
736742
self.assertEqual(len(span_list), 3)

0 commit comments

Comments
 (0)