Skip to content

Commit c43841d

Browse files
committed
format and remove print
1 parent c204b78 commit c43841d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/test_api.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,20 @@ def test_baggage_with_tracing_enabled(sentry_init):
9898

9999

100100
def test_baggage_with_dsn(sentry_init):
101-
sentry_init(dsn="http://97333d956c9e40989a0139756c121c34@sentry-x.sentry-y.s.c.local/976543210", traces_sample_rate=1.0, release="2.0.0", environment="dev", transport=TestTransportWithOptions)
101+
sentry_init(
102+
dsn="http://97333d956c9e40989a0139756c121c34@sentry-x.sentry-y.s.c.local/976543210",
103+
traces_sample_rate=1.0,
104+
release="2.0.0",
105+
environment="dev",
106+
transport=TestTransportWithOptions,
107+
)
102108
with start_transaction() as transaction:
103109
expected_baggage_re = r"^sentry-trace_id={},sentry-sample_rand=0\.\d{{6}},sentry-environment=dev,sentry-release=2\.0\.0,sentry-public_key=97333d956c9e40989a0139756c121c34,sentry-sample_rate=1\.0,sentry-sampled={}$".format(
104110
transaction.trace_id, "true" if transaction.sampled else "false"
105111
)
106-
print('xx received baggage', get_baggage() )
107112
assert re.match(expected_baggage_re, get_baggage())
108113

114+
109115
def test_continue_trace(sentry_init):
110116
sentry_init()
111117

0 commit comments

Comments
 (0)