Skip to content

Commit 0e700b7

Browse files
committed
fixup lint
1 parent e9f6caf commit 0e700b7

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

instrumentation/opentelemetry-instrumentation-httpx/tests/test_httpx_integration.py

+12-4
Original file line numberDiff line numberDiff line change
@@ -780,9 +780,13 @@ def test_custom_tracer_provider(self):
780780
HTTPXClientInstrumentor().uninstrument()
781781

782782
def test_response_hook(self):
783-
response_hook_key = "async_response_hook" if asyncio.iscoroutinefunction(self.response_hook) else "response_hook"
783+
response_hook_key = (
784+
"async_response_hook"
785+
if asyncio.iscoroutinefunction(self.response_hook)
786+
else "response_hook"
787+
)
784788
response_hook_kwargs = {
785-
response_hook_key: self.response_hook
789+
response_hook_key: self.response_hook
786790
}
787791
HTTPXClientInstrumentor().instrument(
788792
tracer_provider=self.tracer_provider,
@@ -827,9 +831,13 @@ def test_response_hook_sync_async_kwargs(self):
827831
HTTPXClientInstrumentor().uninstrument()
828832

829833
def test_request_hook(self):
830-
request_hook_key = "async_request_hook" if asyncio.iscoroutinefunction(self.request_hook) else "request_hook"
834+
request_hook_key = (
835+
"async_request_hook"
836+
if asyncio.iscoroutinefunction(self.request_hook)
837+
else "request_hook"
838+
)
831839
request_hook_kwargs = {
832-
request_hook_key: self.request_hook
840+
request_hook_key: self.request_hook
833841
}
834842
HTTPXClientInstrumentor().instrument(
835843
tracer_provider=self.tracer_provider,

0 commit comments

Comments
 (0)