We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71c7a46 commit 3569d26Copy full SHA for 3569d26
instrumentation/opentelemetry-instrumentation-django/tests/test_middleware.py
@@ -234,7 +234,7 @@ def test_templated_route_get(self):
234
self.assertEqual(span.attributes["http.scheme"], "http")
235
self.assertEqual(span.attributes["http.status_code"], 200)
236
237
- def test_when_middleware_triggers_host_check_then_raises_exception(self):
+ def test_when_middleware_triggers_host_check_then_returns_bad_request(self):
238
def return_host(request):
239
# "HttpRequest.get_host" checks for allowed hosts and raises
240
# `django.core.DisallowedHost` if it isn't allowed.
0 commit comments