MCPcopy Index your code
hub / github.com/aws/aws-cli / test_alias_then_help_command

Method test_alias_then_help_command

tests/unit/test_alias.py:559–572  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

557 )
558
559 def test_alias_then_help_command(self):
560 alias_value = 'myservice myoperation'
561
562 command_table = self.create_command_table(['myservice'])
563 parser = self.create_parser(command_table)
564 alias_cmd = ServiceAliasCommand(
565 self.alias_name, alias_value, self.session, command_table, parser
566 )
567
568 parsed_globals = FakeParsedArgs(command=self.alias_name)
569 alias_cmd(['help'], parsed_globals)
570 command_table['myservice'].assert_called_with(
571 ['myoperation', 'help'], FakeParsedArgs(command='myservice')
572 )
573
574 def test_alias_then_additional_parameters(self):
575 alias_value = 'myservice myoperation'

Callers

nothing calls this directly

Calls 4

create_command_tableMethod · 0.95
create_parserMethod · 0.95
ServiceAliasCommandClass · 0.90
FakeParsedArgsClass · 0.70

Tested by

no test coverage detected