MCPcopy Create free account
hub / github.com/aws/aws-cli / setUp

Method setUp

tests/unit/botocore/docs/test_client.py:23–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21
22class TestClientDocumenter(BaseDocsTest):
23 def setUp(self):
24 super().setUp()
25 exception_shape = {
26 'SomeException': {
27 'exception': True,
28 'type': 'structure',
29 'members': {'Message': {'shape': 'String'}},
30 }
31 }
32 self.add_shape(exception_shape)
33 self.add_shape_to_params('Biz', 'String')
34 self.add_shape_to_errors('SomeException')
35 self.setup_client()
36 self.client_documenter = ClientDocumenter(
37 self.client, self.root_services_path
38 )
39
40 def test_document_client(self):
41 self.client_documenter.document_client(self.doc_structure)

Callers 1

setUpMethod · 0.45

Calls 5

ClientDocumenterClass · 0.90
add_shape_to_paramsMethod · 0.80
add_shape_to_errorsMethod · 0.80
setup_clientMethod · 0.80
add_shapeMethod · 0.45

Tested by

no test coverage detected