Skip to content

Commit 0d70d04

Browse files
committed
more asserts
1 parent 3737b3c commit 0d70d04

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/tracing/test_span_streaming.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ def test_start_span(sentry_init, capture_envelopes):
4545
events = capture_envelopes()
4646

4747
with sentry_sdk.traces.start_span(name="segment") as segment:
48+
assert segment.is_segment() is True
4849
with sentry_sdk.traces.start_span(name="child") as child:
50+
assert child.is_segment() is False
4951
assert child.segment == segment
5052

5153
sentry_sdk.get_client().flush()

0 commit comments

Comments
 (0)