MCPcopy
hub / github.com/aws/aws-cli / add_response

Method add_response

scripts/performance/simple_stubbed_tests.py:39–46  ·  view source on GitHub ↗
(self, body, headers, status_code)

Source from the content-addressed store, hash-verified

37 self._urllib3_patch.stop()
38
39 def add_response(self, body, headers, status_code):
40 response = AWSResponse(
41 url='http://169.254.169.254/',
42 status_code=status_code,
43 headers=headers,
44 raw=RawResponse(body.encode()),
45 )
46 self._responses.append(response)
47
48
49class JSONStubbedBenchmarkSuite(BaseBenchmarkSuite):

Callers 1

_stub_responsesMethod · 0.45

Calls 3

AWSResponseClass · 0.90
RawResponseClass · 0.70
encodeMethod · 0.45

Tested by

no test coverage detected