diff --git a/tests/integrations/django/test_basic.py b/tests/integrations/django/test_basic.py index a549860dc9..4a73b25a3a 100644 --- a/tests/integrations/django/test_basic.py +++ b/tests/integrations/django/test_basic.py @@ -141,7 +141,7 @@ def test_has_trace_if_performance_enabled(sentry_init, client, capture_events): sentry_init( integrations=[ DjangoIntegration( - http_methods_to_capture=("HEAD"), + http_methods_to_capture=("HEAD", ), ) ], traces_sample_rate=1.0, @@ -190,7 +190,9 @@ def test_has_trace_if_performance_disabled(sentry_init, client, capture_events): def test_trace_from_headers_if_performance_enabled(sentry_init, client, capture_events): sentry_init( - integrations=[DjangoIntegration()], + integrations=[DjangoIntegration( + http_methods_to_capture=("HEAD", ), + )], traces_sample_rate=1.0, ) @@ -223,7 +225,9 @@ def test_trace_from_headers_if_performance_disabled( sentry_init, client, capture_events ): sentry_init( - integrations=[DjangoIntegration()], + integrations=[DjangoIntegration( + http_methods_to_capture=("HEAD", ), + )], ) events = capture_events()