Skip to content

Commit 7a10436

Browse files
revert basic tests
1 parent d3e5ed7 commit 7a10436

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/integrations/django/test_basic.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ def test_trace_from_headers_if_performance_disabled(
268268
assert error_event["contexts"]["trace"]["trace_id"] == trace_id
269269

270270

271+
@pytest.mark.forked
271272
@pytest_mark_django_db_decorator()
272273
def test_user_captured(sentry_init, client, capture_events):
273274
sentry_init(integrations=[DjangoIntegration()], send_default_pii=True)
@@ -289,6 +290,7 @@ def test_user_captured(sentry_init, client, capture_events):
289290
}
290291

291292

293+
@pytest.mark.forked
292294
@pytest_mark_django_db_decorator()
293295
def test_queryset_repr(sentry_init, capture_events):
294296
sentry_init(integrations=[DjangoIntegration()])
@@ -311,6 +313,7 @@ def test_queryset_repr(sentry_init, capture_events):
311313
)
312314

313315

316+
@pytest.mark.forked
314317
@pytest_mark_django_db_decorator()
315318
def test_context_nested_queryset_repr(sentry_init, capture_events):
316319
sentry_init(integrations=[DjangoIntegration()])
@@ -360,6 +363,7 @@ def test_500(sentry_init, client):
360363
assert content == "Sentry error."
361364

362365

366+
@pytest.mark.forked
363367
def test_management_command_raises():
364368
# This just checks for our assumption that Django passes through all
365369
# exceptions by default, so our excepthook can be used for management
@@ -368,6 +372,7 @@ def test_management_command_raises():
368372
execute_from_command_line(["manage.py", "mycrash"])
369373

370374

375+
@pytest.mark.forked
371376
@pytest_mark_django_db_decorator()
372377
@pytest.mark.parametrize("with_integration", [True, False])
373378
def test_sql_queries(sentry_init, capture_events, with_integration):
@@ -400,6 +405,7 @@ def test_sql_queries(sentry_init, capture_events, with_integration):
400405
assert crumb["data"]["db.params"] == [123]
401406

402407

408+
@pytest.mark.forked
403409
@pytest_mark_django_db_decorator()
404410
def test_sql_dict_query_params(sentry_init, capture_events):
405411
sentry_init(
@@ -434,6 +440,7 @@ def test_sql_dict_query_params(sentry_init, capture_events):
434440
assert crumb["data"]["db.params"] == {"my_foo": 10}
435441

436442

443+
@pytest.mark.forked
437444
@pytest_mark_django_db_decorator()
438445
def test_response_trace(sentry_init, client, capture_events, render_span_tree):
439446
pytest.importorskip("rest_framework")
@@ -463,6 +470,7 @@ def test_response_trace(sentry_init, client, capture_events, render_span_tree):
463470
lambda sql: sql.SQL('SELECT %(my_param)s FROM "foobar"'),
464471
],
465472
)
473+
@pytest.mark.forked
466474
@pytest_mark_django_db_decorator()
467475
def test_sql_psycopg2_string_composition(sentry_init, capture_events, query):
468476
sentry_init(
@@ -494,6 +502,7 @@ def test_sql_psycopg2_string_composition(sentry_init, capture_events, query):
494502
assert crumb["data"]["db.params"] == {"my_param": 10}
495503

496504

505+
@pytest.mark.forked
497506
@pytest_mark_django_db_decorator()
498507
def test_sql_psycopg2_placeholders(sentry_init, capture_events):
499508
sentry_init(
@@ -553,6 +562,7 @@ def test_sql_psycopg2_placeholders(sentry_init, capture_events):
553562
]
554563

555564

565+
@pytest.mark.forked
556566
@pytest_mark_django_db_decorator(transaction=True)
557567
def test_django_connect_trace(sentry_init, client, capture_events, render_span_tree):
558568
"""
@@ -589,6 +599,7 @@ def test_django_connect_trace(sentry_init, client, capture_events, render_span_t
589599
assert '- op="db": description="connect"' in render_span_tree(event)
590600

591601

602+
@pytest.mark.forked
592603
@pytest_mark_django_db_decorator(transaction=True)
593604
def test_django_connect_breadcrumbs(sentry_init, capture_events):
594605
"""
@@ -624,6 +635,7 @@ def test_django_connect_breadcrumbs(sentry_init, capture_events):
624635
]
625636

626637

638+
@pytest.mark.forked
627639
@pytest_mark_django_db_decorator(transaction=True)
628640
def test_db_connection_span_data(sentry_init, client, capture_events):
629641
sentry_init(
@@ -946,6 +958,7 @@ def test_render_spans(sentry_init, client, capture_events, render_span_tree):
946958

947959

948960
@pytest.mark.skipif(DJANGO_VERSION < (1, 9), reason="Requires Django >= 1.9")
961+
@pytest.mark.forked
949962
@pytest_mark_django_db_decorator()
950963
def test_render_spans_queryset_in_data(sentry_init, client, capture_events):
951964
sentry_init(

0 commit comments

Comments
 (0)