Skip to content

Commit

Permalink
No reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpirker committed Sep 12, 2024
1 parent 487d49c commit 61e2834
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/integrations/django/myapp/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def path(path, *args, **kwargs):
),
path("middleware-exc", views.message, name="middleware_exc"),
path("message", views.message, name="message"),
path("no-message", views.nomessage, name="nomessage"),
path("nomessage", views.nomessage, name="nomessage"),
path("view-with-signal", views.view_with_signal, name="view_with_signal"),
path("mylogin", views.mylogin, name="mylogin"),
path("classbased", views.ClassBasedView.as_view(), name="classbased"),
Expand Down
12 changes: 6 additions & 6 deletions tests/integrations/django/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,9 +1170,9 @@ def test_transaction_http_method_default(sentry_init, client, capture_events):
)
events = capture_events()

client.get(reverse("nomessage"))
client.options(reverse("nomessage"))
client.head(reverse("nomessage"))
client.get("/nomessage")
client.options("/nomessage")
client.head("/nomessage")

(event,) = events

Expand All @@ -1191,9 +1191,9 @@ def test_transaction_http_method_custom(sentry_init, client, capture_events):
)
events = capture_events()

client.get(reverse("nomessage"))
client.options(reverse("nomessage"))
client.head(reverse("nomessage"))
client.get("/nomessage")
client.options("/nomessage")
client.head("/nomessage")

assert len(events) == 2

Expand Down

0 comments on commit 61e2834

Please sign in to comment.