Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpirker committed Sep 12, 2024
1 parent 61e2834 commit cbe977a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/integrations/django/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
)

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit cbe977a

Please sign in to comment.