diff --git a/tests/integrations/django/myapp/urls.py b/tests/integrations/django/myapp/urls.py index afe7d37082..79dd4edd52 100644 --- a/tests/integrations/django/myapp/urls.py +++ b/tests/integrations/django/myapp/urls.py @@ -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"), diff --git a/tests/integrations/django/test_basic.py b/tests/integrations/django/test_basic.py index 6d38d270ec..a549860dc9 100644 --- a/tests/integrations/django/test_basic.py +++ b/tests/integrations/django/test_basic.py @@ -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 @@ -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