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

Method test_handle_empty_nested_struct

tests/unit/test_clidocs.py:116–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

114 self.assert_rendered_docs_contain('( ... recursive ... )')
115
116 def test_handle_empty_nested_struct(self):
117 shape_map = {
118 'InputStruct': {
119 'type': 'structure',
120 'members': {
121 'A': {'shape': 'Empty'},
122 },
123 },
124 'Empty': {'type': 'structure', 'members': {}},
125 }
126 shape = StructureShape(
127 'InputStruct', shape_map['InputStruct'], ShapeResolver(shape_map)
128 )
129
130 self.arg_table['arg-name'] = mock.Mock(argument_model=shape)
131 self.operation_handler.doc_option_example(
132 'arg-name', self.help_command, 'process-cli-arg.foo.bar'
133 )
134 self.assert_proper_indentation()
135
136 def test_handle_no_output_shape(self):
137 operation_model = mock.Mock()

Callers

nothing calls this directly

Calls 4

StructureShapeClass · 0.90
ShapeResolverClass · 0.90
doc_option_exampleMethod · 0.45

Tested by

no test coverage detected