Skip to content

Commit 3569d26

Browse files
📝 Change test name
1 parent 71c7a46 commit 3569d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instrumentation/opentelemetry-instrumentation-django/tests/test_middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def test_templated_route_get(self):
234234
self.assertEqual(span.attributes["http.scheme"], "http")
235235
self.assertEqual(span.attributes["http.status_code"], 200)
236236

237-
def test_when_middleware_triggers_host_check_then_raises_exception(self):
237+
def test_when_middleware_triggers_host_check_then_returns_bad_request(self):
238238
def return_host(request):
239239
# "HttpRequest.get_host" checks for allowed hosts and raises
240240
# `django.core.DisallowedHost` if it isn't allowed.

0 commit comments

Comments
 (0)