Skip to content

Commit b8dcbef

Browse files
committed
Merge branch 'potel-base' into antonpirker/potel/fix-celery
2 parents e396730 + 3f638f7 commit b8dcbef

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

tests/integrations/django/test_basic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ def test_sql_dict_query_params(sentry_init, capture_events):
415415
assert crumb["message"] == (
416416
"SELECT count(*) FROM people_person WHERE foo = %(my_foo)s"
417417
)
418-
assert crumb["data"]["db.params"] == '{"my_foo": 10}'
418+
assert crumb["data"]["db.params"] == {"my_foo": 10}
419419

420420

421421
@pytest.mark.forked
@@ -477,7 +477,7 @@ def test_sql_psycopg2_string_composition(sentry_init, capture_events, query):
477477
(event,) = events
478478
crumb = event["breadcrumbs"]["values"][-1]
479479
assert crumb["message"] == ('SELECT %(my_param)s FROM "foobar"')
480-
assert crumb["data"]["db.params"] == '{"my_param": 10}'
480+
assert crumb["data"]["db.params"] == {"my_param": 10}
481481

482482

483483
@pytest.mark.forked
@@ -530,7 +530,7 @@ def test_sql_psycopg2_placeholders(sentry_init, capture_events):
530530
{
531531
"category": "query",
532532
"data": {
533-
"db.params": '{"first_var": "fizz", "second_var": "not a date"}',
533+
"db.params": {"first_var": "fizz", "second_var": "not a date"},
534534
"db.paramstyle": "format",
535535
},
536536
"message": 'insert into my_test_table ("foo", "bar") values (%(first_var)s, '

tests/integrations/rq/test_rq.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def do_trick(dog, trick):
4545
return "{}, can you {}? Good dog!".format(dog, trick)
4646

4747

48-
@pytest.mark.forked
4948
def test_basic(sentry_init, capture_events):
5049
sentry_init(integrations=[RqIntegration()])
5150
events = capture_events()
@@ -78,7 +77,6 @@ def test_basic(sentry_init, capture_events):
7877
assert "started_at" in extra
7978

8079

81-
@pytest.mark.forked
8280
def test_transport_shutdown(sentry_init, capture_events_forksafe):
8381
sentry_init(integrations=[RqIntegration()])
8482

@@ -97,7 +95,6 @@ def test_transport_shutdown(sentry_init, capture_events_forksafe):
9795
assert exception["type"] == "ZeroDivisionError"
9896

9997

100-
@pytest.mark.forked
10198
def test_transaction_with_error(
10299
sentry_init, capture_events, DictionaryContaining # noqa:N803
103100
):
@@ -133,7 +130,6 @@ def test_transaction_with_error(
133130
)
134131

135132

136-
@pytest.mark.forked
137133
def test_error_has_trace_context_if_tracing_disabled(
138134
sentry_init,
139135
capture_events,
@@ -152,7 +148,6 @@ def test_error_has_trace_context_if_tracing_disabled(
152148
assert error_event["contexts"]["trace"]
153149

154150

155-
@pytest.mark.forked
156151
def test_tracing_enabled(
157152
sentry_init,
158153
capture_events,
@@ -173,7 +168,6 @@ def test_tracing_enabled(
173168
assert transaction["contexts"]["trace"] == error_event["contexts"]["trace"]
174169

175170

176-
@pytest.mark.forked
177171
def test_tracing_disabled(
178172
sentry_init,
179173
capture_events,
@@ -254,7 +248,6 @@ def test_traces_sampler_gets_correct_values_in_sampling_context(
254248
)
255249

256250

257-
@pytest.mark.forked
258251
@pytest.mark.skipif(
259252
parse_version(rq.__version__) < (1, 5), reason="At least rq-1.5 required"
260253
)

0 commit comments

Comments
 (0)