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

Method setUp

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

Source from the content-addressed store, hash-verified

328
329class TestInternalAliasSubCommand(unittest.TestCase):
330 def setUp(self):
331 self.alias_name = 'myalias'
332 self.alias_value = 'list-stacks'
333 self.session = mock.Mock(spec=Session)
334 self.parent_command = 'cloudformation'
335 self.command_object = mock.Mock(spec=CLICommand)
336 self.command_object.name = self.parent_command
337 self.shadow_proxy_command = None
338 self.command_table = {
339 self.parent_command: self.command_object,
340 }
341 self.global_args_parser = MainArgParser(
342 command_table=self.command_table,
343 version_string='version',
344 description='description',
345 argument_table={},
346 )
347
348 def create_alias_sub_command(self):
349 return InternalAliasSubCommand(

Callers

nothing calls this directly

Calls 1

MainArgParserClass · 0.90

Tested by

no test coverage detected