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 e612547 commit cf16d60Copy full SHA for cf16d60
opentelemetry-api/tests/attributes/test_attributes.py
@@ -194,9 +194,7 @@ def test_mapping(self):
194
)
195
196
def test_wsgi_request_attribute(self):
197
- # Test WSGIRequest type validation
198
- try:
199
- # Configure Django settings if not already configured
+ if _HAS_DJANGO:
200
if not settings.configured:
201
settings.configure(
202
DEBUG=True,
@@ -251,10 +249,6 @@ def test_wsgi_request_attribute(self):
251
249
252
250
self.assertEqual(cleaned_mapping, {"request": expected_cleaned})
253
254
- except ImportError:
255
- # Skip test if django is not available
256
- self.skipTest("Django not available")
257
-
258
259
class TestBoundedAttributes(unittest.TestCase):
260
# pylint: disable=consider-using-dict-items
0 commit comments