Skip to content

Commit b89059f

Browse files
committed
lint
1 parent a1d0473 commit b89059f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

sentry_sdk/integrations/pyreqwest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
from typing import Any, Generator
33

44
import sentry_sdk
5-
from sentry_sdk.scope import should_send_default_pii
65
from sentry_sdk import start_span
76
from sentry_sdk.consts import OP, SPANDATA
87
from sentry_sdk.integrations import DidNotEnable, Integration
8+
from sentry_sdk.scope import should_send_default_pii
99
from sentry_sdk.traces import StreamedSpan
1010
from sentry_sdk.tracing import BAGGAGE_HEADER_NAME
1111
from sentry_sdk.tracing_utils import (

tests/integrations/pyreqwest/test_pyreqwest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ def test_sync_client_spans(
9696
assert span["attributes"]["sentry.origin"] == "auto.http.pyreqwest"
9797

9898
if send_default_pii:
99-
assert span["attributes"]["url.full"] == f"http://localhost:{server_port}/hello"
99+
assert (
100+
span["attributes"]["url.full"]
101+
== f"http://localhost:{server_port}/hello"
102+
)
100103
assert span["attributes"][SPANDATA.URL_QUERY] == "q=test"
101104
assert span["attributes"][SPANDATA.URL_FRAGMENT] == "frag"
102105
else:

0 commit comments

Comments
 (0)