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

Method test_handle_recursive_output

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

Source from the content-addressed store, hash-verified

91 self.assert_rendered_docs_contain('{ ... recursive ... }')
92
93 def test_handle_recursive_output(self):
94 shape_map = {
95 'RecursiveStruct': {
96 'type': 'structure',
97 'members': {
98 'A': {'shape': 'NonRecursive'},
99 'B': {'shape': 'RecursiveStruct'},
100 },
101 },
102 'NonRecursive': {'type': 'string'},
103 }
104 shape = StructureShape(
105 'RecursiveStruct',
106 shape_map['RecursiveStruct'],
107 ShapeResolver(shape_map),
108 )
109
110 operation_model = mock.Mock()
111 operation_model.output_shape = shape
112 self.help_command.obj = operation_model
113 self.operation_handler.doc_output(self.help_command, 'event-name')
114 self.assert_rendered_docs_contain('( ... recursive ... )')
115
116 def test_handle_empty_nested_struct(self):
117 shape_map = {

Callers

nothing calls this directly

Calls 4

StructureShapeClass · 0.90
ShapeResolverClass · 0.90
doc_outputMethod · 0.45

Tested by

no test coverage detected