@@ -29,6 +29,7 @@ def client():
2929 return Client (application )
3030
3131
32+ @pytest .mark .forked
3233@pytest_mark_django_db_decorator (transaction = True )
3334def test_query_source_disabled (sentry_init , client , capture_events ):
3435 sentry_options = {
@@ -66,6 +67,7 @@ def test_query_source_disabled(sentry_init, client, capture_events):
6667 raise AssertionError ("No db span found" )
6768
6869
70+ @pytest .mark .forked
6971@pytest_mark_django_db_decorator (transaction = True )
7072@pytest .mark .parametrize ("enable_db_query_source" , [None , True ])
7173def test_query_source_enabled (
@@ -109,6 +111,7 @@ def test_query_source_enabled(
109111 raise AssertionError ("No db span found" )
110112
111113
114+ @pytest .mark .forked
112115@pytest_mark_django_db_decorator (transaction = True )
113116def test_query_source (sentry_init , client , capture_events ):
114117 sentry_init (
@@ -161,6 +164,7 @@ def test_query_source(sentry_init, client, capture_events):
161164 raise AssertionError ("No db span found" )
162165
163166
167+ @pytest .mark .forked
164168@pytest_mark_django_db_decorator (transaction = True )
165169def test_query_source_with_module_in_search_path (sentry_init , client , capture_events ):
166170 """
@@ -214,6 +218,7 @@ def test_query_source_with_module_in_search_path(sentry_init, client, capture_ev
214218 raise AssertionError ("No db span found" )
215219
216220
221+ @pytest .mark .forked
217222@pytest_mark_django_db_decorator (transaction = True )
218223def test_query_source_with_in_app_exclude (sentry_init , client , capture_events ):
219224 sentry_init (
@@ -276,6 +281,7 @@ def test_query_source_with_in_app_exclude(sentry_init, client, capture_events):
276281 raise AssertionError ("No db span found" )
277282
278283
284+ @pytest .mark .forked
279285@pytest_mark_django_db_decorator (transaction = True )
280286def test_query_source_with_in_app_include (sentry_init , client , capture_events ):
281287 sentry_init (
@@ -321,6 +327,7 @@ def test_query_source_with_in_app_include(sentry_init, client, capture_events):
321327 raise AssertionError ("No db span found" )
322328
323329
330+ @pytest .mark .forked
324331@pytest_mark_django_db_decorator (transaction = True )
325332def test_no_query_source_if_duration_too_short (sentry_init , client , capture_events ):
326333 sentry_init (
@@ -378,6 +385,7 @@ def __exit__(self, type, value, traceback):
378385 raise AssertionError ("No db span found" )
379386
380387
388+ @pytest .mark .forked
381389@pytest_mark_django_db_decorator (transaction = True )
382390def test_query_source_if_duration_over_threshold (sentry_init , client , capture_events ):
383391 sentry_init (
@@ -450,6 +458,7 @@ def __exit__(self, type, value, traceback):
450458 raise AssertionError ("No db span found" )
451459
452460
461+ @pytest .mark .forked
453462@pytest_mark_django_db_decorator (transaction = True )
454463def test_db_span_origin_execute (sentry_init , client , capture_events ):
455464 sentry_init (
@@ -478,6 +487,7 @@ def test_db_span_origin_execute(sentry_init, client, capture_events):
478487 assert span ["origin" ] == "auto.http.django"
479488
480489
490+ @pytest .mark .forked
481491@pytest_mark_django_db_decorator (transaction = True )
482492def test_db_span_origin_executemany (sentry_init , client , capture_events ):
483493 sentry_init (
0 commit comments