Skip to content

Commit ebca500

Browse files
committed
Fix django db tests again
1 parent 665b4a5 commit ebca500

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
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, '

0 commit comments

Comments
 (0)