Skip to content

Commit 91035b4

Browse files
authored
missed some
1 parent 9e952a7 commit 91035b4

4 files changed

Lines changed: 18 additions & 18 deletions

File tree

‎tests/integrations/pyramid/test_pyramid.py‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def inner():
6565
def test_view_exceptions(
6666
get_client, route, sentry_init, capture_events, capture_exceptions
6767
):
68-
sentry_init(integrations=[PyramidIntegration()], data_collection={})
68+
sentry_init(integrations=[PyramidIntegration()])
6969
events = capture_events()
7070
exceptions = capture_exceptions()
7171

@@ -93,7 +93,7 @@ def errors(request):
9393

9494

9595
def test_has_context(route, get_client, sentry_init, capture_events):
96-
sentry_init(integrations=[PyramidIntegration()], data_collection={})
96+
sentry_init(integrations=[PyramidIntegration()])
9797
events = capture_events()
9898

9999
@route("/context_message/{msg}")
@@ -211,7 +211,7 @@ def index(request):
211211

212212
@pytest.mark.parametrize("data", [{}, []], ids=["empty-dict", "empty-list"])
213213
def test_flask_empty_json_request(sentry_init, capture_events, route, get_client, data):
214-
sentry_init(integrations=[PyramidIntegration()], data_collection={})
214+
sentry_init(integrations=[PyramidIntegration()])
215215

216216
@route("/")
217217
def index(request):
@@ -305,7 +305,7 @@ def test_bad_request_not_captured(
305305
):
306306
import pyramid.httpexceptions as exc
307307

308-
sentry_init(integrations=[PyramidIntegration()], data_collection={})
308+
sentry_init(integrations=[PyramidIntegration()])
309309
events = capture_events()
310310

311311
@route("/")
@@ -326,7 +326,7 @@ def errorhandler(exc, request):
326326
def test_errorhandler_ok(
327327
sentry_init, pyramid_config, capture_exceptions, route, get_client
328328
):
329-
sentry_init(integrations=[PyramidIntegration()], data_collection={})
329+
sentry_init(integrations=[PyramidIntegration()])
330330
errors = capture_exceptions()
331331

332332
@route("/")
@@ -347,7 +347,7 @@ def errorhandler(exc, request):
347347
def test_errorhandler_500(
348348
sentry_init, pyramid_config, capture_exceptions, route, get_client
349349
):
350-
sentry_init(integrations=[PyramidIntegration()], data_collection={})
350+
sentry_init(integrations=[PyramidIntegration()])
351351
errors = capture_exceptions()
352352

353353
@route("/")
@@ -372,7 +372,7 @@ def errorhandler(exc, request):
372372
def test_error_in_errorhandler(
373373
sentry_init, pyramid_config, capture_events, route, get_client
374374
):
375-
sentry_init(integrations=[PyramidIntegration()], data_collection={})
375+
sentry_init(integrations=[PyramidIntegration()])
376376

377377
@route("/")
378378
def index(request):
@@ -448,7 +448,7 @@ def tween(request):
448448

449449

450450
def test_tween_ok(sentry_init, pyramid_config, capture_exceptions, route, get_client):
451-
sentry_init(integrations=[PyramidIntegration()], data_collection={})
451+
sentry_init(integrations=[PyramidIntegration()])
452452
errors = capture_exceptions()
453453

454454
@route("/")

‎tests/integrations/starlite/test_starlite.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def test_catch_exceptions(
100100
expected_message,
101101
expected_tx_name,
102102
):
103-
sentry_init(integrations=[StarliteIntegration()], data_collection={})
103+
sentry_init(integrations=[StarliteIntegration()])
104104
starlite_app = starlite_app_factory()
105105
exceptions = capture_exceptions()
106106
events = capture_events()

‎tests/integrations/stdlib/test_httplib.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def test_httplib_misuse(sentry_init, capture_events, request):
198198
wrongly.
199199
"""
200200

201-
sentry_init(data_collection={})
201+
sentry_init()
202202
events = capture_events()
203203

204204
conn = HTTPConnection("localhost", PORT)

‎tests/integrations/wsgi/test_wsgi.py‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def next(self):
4545

4646

4747
def test_basic(sentry_init, crashing_app, capture_events):
48-
sentry_init(data_collection={})
48+
sentry_init()
4949
app = SentryWsgiMiddleware(crashing_app)
5050
client = Client(app)
5151
events = capture_events()
@@ -69,7 +69,7 @@ def test_basic(sentry_init, crashing_app, capture_events):
6969
def test_script_name_is_respected(
7070
sentry_init, crashing_app, capture_events, script_name, path_info
7171
):
72-
sentry_init(data_collection={})
72+
sentry_init()
7373
app = SentryWsgiMiddleware(crashing_app)
7474
client = Client(app)
7575
events = capture_events()
@@ -85,7 +85,7 @@ def test_script_name_is_respected(
8585

8686
@pytest.mark.parametrize("zero_code", [0, None])
8787
def test_systemexit_zero_is_ignored(sentry_init, capture_events, zero_code):
88-
sentry_init(data_collection={})
88+
sentry_init()
8989
iterable = ExitingIterable(lambda: SystemExit(zero_code))
9090
app = SentryWsgiMiddleware(IterableApp(iterable))
9191
client = Client(app)
@@ -99,7 +99,7 @@ def test_systemexit_zero_is_ignored(sentry_init, capture_events, zero_code):
9999

100100
@pytest.mark.parametrize("nonzero_code", ["", "foo", 1, 2])
101101
def test_systemexit_nonzero_is_captured(sentry_init, capture_events, nonzero_code):
102-
sentry_init(data_collection={})
102+
sentry_init()
103103
iterable = ExitingIterable(lambda: SystemExit(nonzero_code))
104104
app = SentryWsgiMiddleware(IterableApp(iterable))
105105
client = Client(app)
@@ -118,7 +118,7 @@ def test_systemexit_nonzero_is_captured(sentry_init, capture_events, nonzero_cod
118118

119119

120120
def test_keyboard_interrupt_is_captured(sentry_init, capture_events):
121-
sentry_init(data_collection={})
121+
sentry_init()
122122
iterable = ExitingIterable(lambda: KeyboardInterrupt())
123123
app = SentryWsgiMiddleware(IterableApp(iterable))
124124
client = Client(app)
@@ -286,7 +286,7 @@ def dogpark(environ, start_response):
286286
capture_message("Attempting to fetch the ball")
287287
raise ValueError("Fetch aborted. The ball was not returned.")
288288

289-
sentry_init(data_collection={})
289+
sentry_init()
290290
app = SentryWsgiMiddleware(dogpark)
291291
client = Client(app)
292292
events = capture_events()
@@ -345,7 +345,7 @@ def dogpark(environ, start_response):
345345
capture_message("Attempting to fetch the ball")
346346
raise ValueError("Fetch aborted. The ball was not returned.")
347347

348-
sentry_init(data_collection={})
348+
sentry_init()
349349
app = SentryWsgiMiddleware(dogpark)
350350
client = Client(app)
351351
events = capture_events()
@@ -555,7 +555,7 @@ def dogpark(environ, start_response):
555555
def test_file_response_wrapping(
556556
sentry_init, has_file_wrapper, has_fileno, expect_wrapped
557557
):
558-
sentry_init(data_collection={})
558+
sentry_init()
559559

560560
response_mock = mock.MagicMock()
561561
if not has_fileno:

0 commit comments

Comments
 (0)