MCPcopy Index your code
hub / github.com/aws/aws-cli / setUp

Method setUp

tests/unit/test_clidriver.py:872–885  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

870
871class TestHowClientIsCreated(BaseAWSCommandParamsTest):
872 def setUp(self):
873 super().setUp()
874 self.endpoint_creator_patch = mock.patch(
875 'botocore.args.EndpointCreator'
876 )
877 self.endpoint_creator = self.endpoint_creator_patch.start()
878 self.create_endpoint = (
879 self.endpoint_creator.return_value.create_endpoint
880 )
881 self.endpoint = self.create_endpoint.return_value
882 self.endpoint.host = 'https://example.com'
883 # Have the endpoint give a dummy empty response.
884 http_response = AWSResponse(None, 200, {}, None)
885 self.endpoint.make_request.return_value = (http_response, {})
886
887 def tearDown(self):
888 super().tearDown()

Callers

nothing calls this directly

Calls 3

AWSResponseClass · 0.90
setUpMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected