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

Method add_response

tests/utils/botocore/__init__.py:411–419  ·  view source on GitHub ↗
(
        self, url='https://example.com', status=200, headers=None, body=b''
    )

Source from the content-addressed store, hash-verified

409 self.responses = []
410
411 def add_response(
412 self, url='https://example.com', status=200, headers=None, body=b''
413 ):
414 if headers is None:
415 headers = {}
416
417 raw = RawResponse(body)
418 response = AWSResponse(url, status, headers, raw)
419 self.responses.append(response)
420
421 @property
422 def _events(self):

Calls 2

AWSResponseClass · 0.90
RawResponseClass · 0.70

Tested by 15

test_mainMethod · 0.36
test_mainMethod · 0.36
test_mainMethod · 0.36
test_extra_argsMethod · 0.36
test_mainMethod · 0.36
test_extra_argsMethod · 0.36