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

Method create_argument

tests/unit/test_argprocess.py:60–68  ·  view source on GitHub ↗
(self, argument_model, argument_name=None)

Source from the content-addressed store, hash-verified

58 return cls(cli_arg_name, member_shape, mock.Mock(), is_required)
59
60 def create_argument(self, argument_model, argument_name=None):
61 if argument_name is None:
62 argument_name = 'foo'
63 argument = mock.Mock()
64 m = model.DenormalizedStructureBuilder().with_members(argument_model)
65 argument.argument_model = m.build_model()
66 argument.name = argument_name
67 argument.cli_name = "--" + argument_name
68 return argument
69
70
71class TestURIParams(BaseArgProcessTest):

Calls 2

with_membersMethod · 0.80
build_modelMethod · 0.80

Tested by

no test coverage detected