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

Method test_handle_recursive_input

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

Source from the content-addressed store, hash-verified

68 self.assertEqual(indent, dedent, message % (indent, dedent))
69
70 def test_handle_recursive_input(self):
71 shape_map = {
72 'RecursiveStruct': {
73 'type': 'structure',
74 'members': {
75 'A': {'shape': 'NonRecursive'},
76 'B': {'shape': 'RecursiveStruct'},
77 },
78 },
79 'NonRecursive': {'type': 'string'},
80 }
81 shape = StructureShape(
82 'RecursiveStruct',
83 shape_map['RecursiveStruct'],
84 ShapeResolver(shape_map),
85 )
86
87 self.arg_table['arg-name'] = mock.Mock(argument_model=shape)
88 self.operation_handler.doc_option_example(
89 'arg-name', self.help_command, 'process-cli-arg.foo.bar'
90 )
91 self.assert_rendered_docs_contain('{ ... recursive ... }')
92
93 def test_handle_recursive_output(self):
94 shape_map = {

Callers

nothing calls this directly

Calls 4

StructureShapeClass · 0.90
ShapeResolverClass · 0.90
doc_option_exampleMethod · 0.45

Tested by

no test coverage detected