24
24
from sentry_sdk .client import Client , NonRecordingClient
25
25
26
26
27
- @pytest .mark .forked
28
27
def test_get_current_span ():
29
28
fake_scope = mock .MagicMock ()
30
29
fake_scope .span = mock .MagicMock ()
@@ -34,7 +33,6 @@ def test_get_current_span():
34
33
assert get_current_span (fake_scope ) is None
35
34
36
35
37
- @pytest .mark .forked
38
36
def test_get_current_span_default_hub (sentry_init ):
39
37
sentry_init ()
40
38
@@ -47,7 +45,6 @@ def test_get_current_span_default_hub(sentry_init):
47
45
assert get_current_span () == fake_span
48
46
49
47
50
- @pytest .mark .forked
51
48
def test_get_current_span_default_hub_with_transaction (sentry_init ):
52
49
sentry_init ()
53
50
@@ -57,7 +54,6 @@ def test_get_current_span_default_hub_with_transaction(sentry_init):
57
54
assert get_current_span () == new_transaction
58
55
59
56
60
- @pytest .mark .forked
61
57
def test_traceparent_with_tracing_enabled (sentry_init ):
62
58
sentry_init (traces_sample_rate = 1.0 )
63
59
@@ -69,7 +65,6 @@ def test_traceparent_with_tracing_enabled(sentry_init):
69
65
assert get_traceparent () == expected_traceparent
70
66
71
67
72
- @pytest .mark .forked
73
68
def test_traceparent_with_tracing_disabled (sentry_init ):
74
69
sentry_init ()
75
70
@@ -81,7 +76,6 @@ def test_traceparent_with_tracing_disabled(sentry_init):
81
76
assert get_traceparent () == expected_traceparent
82
77
83
78
84
- @pytest .mark .forked
85
79
def test_baggage_with_tracing_disabled (sentry_init ):
86
80
sentry_init (release = "1.0.0" , environment = "dev" )
87
81
propagation_context = get_isolation_scope ()._propagation_context
@@ -93,7 +87,6 @@ def test_baggage_with_tracing_disabled(sentry_init):
93
87
assert get_baggage () == expected_baggage
94
88
95
89
96
- @pytest .mark .forked
97
90
def test_baggage_with_tracing_enabled (sentry_init ):
98
91
sentry_init (traces_sample_rate = 1.0 , release = "1.0.0" , environment = "dev" )
99
92
with start_transaction () as transaction :
@@ -103,7 +96,6 @@ def test_baggage_with_tracing_enabled(sentry_init):
103
96
assert re .match (expected_baggage_re , get_baggage ())
104
97
105
98
106
- @pytest .mark .forked
107
99
def test_continue_trace (sentry_init ):
108
100
sentry_init ()
109
101
@@ -130,7 +122,6 @@ def test_continue_trace(sentry_init):
130
122
}
131
123
132
124
133
- @pytest .mark .forked
134
125
def test_is_initialized ():
135
126
assert not is_initialized ()
136
127
@@ -139,7 +130,6 @@ def test_is_initialized():
139
130
assert is_initialized ()
140
131
141
132
142
- @pytest .mark .forked
143
133
def test_get_client ():
144
134
client = get_client ()
145
135
assert client is not None
0 commit comments