@@ -56,7 +56,6 @@ def test_view_exceptions(
5656):
5757 sentry_init (
5858 integrations = [DjangoIntegration ()],
59- data_collection = {},
6059 )
6160 exceptions = capture_exceptions ()
6261 items = capture_items ("event" )
@@ -85,7 +84,6 @@ def test_ensures_x_forwarded_header_is_honored_in_sdk_when_enabled_in_django(
8584
8685 sentry_init (
8786 integrations = [DjangoIntegration ()],
88- data_collection = {},
8987 )
9088 exceptions = capture_exceptions ()
9189 items = capture_items ("event" )
@@ -111,7 +109,6 @@ def test_ensures_x_forwarded_header_is_not_honored_when_unenabled_in_django(
111109 """
112110 sentry_init (
113111 integrations = [DjangoIntegration ()],
114- data_collection = {},
115112 )
116113 exceptions = capture_exceptions ()
117114 items = capture_items ("event" )
@@ -125,7 +122,9 @@ def test_ensures_x_forwarded_header_is_not_honored_when_unenabled_in_django(
125122
126123
127124def test_middleware_exceptions (sentry_init , client , capture_exceptions ):
128- sentry_init (integrations = [DjangoIntegration ()], data_collection = {})
125+ sentry_init (
126+ integrations = [DjangoIntegration ()],
127+ )
129128 exceptions = capture_exceptions ()
130129 client .get (reverse ("middleware_exc" ))
131130
@@ -140,7 +139,6 @@ def test_request_captured(
140139):
141140 sentry_init (
142141 integrations = [DjangoIntegration ()],
143- data_collection = {},
144142 )
145143 items = capture_items ("event" )
146144 content , status , headers = unpack_werkzeug_response (client .get (reverse ("message" )))
@@ -313,7 +311,6 @@ def test_user_captured(
313311):
314312 sentry_init (
315313 integrations = [DjangoIntegration ()],
316- data_collection = {},
317314 )
318315 items = capture_items ("event" )
319316 content , status , headers = unpack_werkzeug_response (client .get (reverse ("mylogin" )))
@@ -343,7 +340,6 @@ def test_materialized_user_captured(
343340):
344341 sentry_init (
345342 integrations = [DjangoIntegration ()],
346- data_collection = {},
347343 traces_sample_rate = 1.0 ,
348344 )
349345
@@ -445,7 +441,9 @@ def test_custom_error_handler_request_context(
445441
446442
447443def test_500 (sentry_init , client ):
448- sentry_init (integrations = [DjangoIntegration ()], data_collection = {})
444+ sentry_init (
445+ integrations = [DjangoIntegration ()],
446+ )
449447
450448 content , status , headers = unpack_werkzeug_response (client .get ("/view-exc" ))
451449 assert status .lower () == "500 internal server error"
@@ -686,7 +684,6 @@ def test_django_connect_trace(
686684 """
687685 sentry_init (
688686 integrations = [DjangoIntegration ()],
689- data_collection = {},
690687 traces_sample_rate = 1.0 ,
691688 )
692689
@@ -847,7 +844,6 @@ def test_segment_name(
847844 sentry_init (
848845 integrations = [DjangoIntegration ()],
849846 traces_sample_rate = 1.0 ,
850- data_collection = {},
851847 )
852848 items = capture_items ("event" , "span" )
853849
@@ -883,7 +879,6 @@ def test_segment_name_tracing_disabled(
883879):
884880 sentry_init (
885881 integrations = [DjangoIntegration ()],
886- data_collection = {},
887882 )
888883 items = capture_items ("event" )
889884
@@ -1217,7 +1212,6 @@ def test_rest_framework_basic(
12171212 pytest .importorskip ("rest_framework" )
12181213 sentry_init (
12191214 integrations = [DjangoIntegration ()],
1220- data_collection = {},
12211215 )
12221216 exceptions = capture_exceptions ()
12231217 items = capture_items ("event" )
0 commit comments