Skip to content

Commit 206f142

Browse files
authored
fix test by adding raw property in mock response (Azure#21577)
1 parent 86582bf commit 206f142

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sdk/monitor/azure-monitor-opentelemetry-exporter/tests/test_base_exporter.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,3 +316,8 @@ def __init__(self, status_code, text, headers={}, reason="test", content="{}"):
316316
self.headers = headers
317317
self.reason = reason
318318
self.content = content
319+
self.raw = MockRaw()
320+
321+
class MockRaw:
322+
def __init__(self):
323+
self.enforce_content_length = False

0 commit comments

Comments
 (0)