Skip to content

Commit

Permalink
fixup lint
Browse files Browse the repository at this point in the history
  • Loading branch information
xrmx committed Aug 25, 2024
1 parent e9f6caf commit 0e700b7
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -780,9 +780,13 @@ def test_custom_tracer_provider(self):
HTTPXClientInstrumentor().uninstrument()

def test_response_hook(self):
response_hook_key = "async_response_hook" if asyncio.iscoroutinefunction(self.response_hook) else "response_hook"
response_hook_key = (
"async_response_hook"
if asyncio.iscoroutinefunction(self.response_hook)
else "response_hook"
)
response_hook_kwargs = {
response_hook_key: self.response_hook
response_hook_key: self.response_hook
}
HTTPXClientInstrumentor().instrument(
tracer_provider=self.tracer_provider,
Expand Down Expand Up @@ -827,9 +831,13 @@ def test_response_hook_sync_async_kwargs(self):
HTTPXClientInstrumentor().uninstrument()

def test_request_hook(self):
request_hook_key = "async_request_hook" if asyncio.iscoroutinefunction(self.request_hook) else "request_hook"
request_hook_key = (
"async_request_hook"
if asyncio.iscoroutinefunction(self.request_hook)
else "request_hook"
)
request_hook_kwargs = {
request_hook_key: self.request_hook
request_hook_key: self.request_hook
}
HTTPXClientInstrumentor().instrument(
tracer_provider=self.tracer_provider,
Expand Down

0 comments on commit 0e700b7

Please sign in to comment.