diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/tests/test_base_exporter.py b/sdk/monitor/azure-monitor-opentelemetry-exporter/tests/test_base_exporter.py index adf632154df9..79fae6e1dd3d 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/tests/test_base_exporter.py +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/tests/test_base_exporter.py @@ -316,3 +316,8 @@ def __init__(self, status_code, text, headers={}, reason="test", content="{}"): self.headers = headers self.reason = reason self.content = content + self.raw = MockRaw() + +class MockRaw: + def __init__(self): + self.enforce_content_length = False