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

Method test_shadow_proxy_command

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

Source from the content-addressed store, hash-verified

303 )
304
305 def test_shadow_proxy_command(self):
306 builtin_cmd = mock.Mock(spec=CLICommand)
307 builtin_cmd.name = 'builtin'
308 self.command_table['builtin'] = builtin_cmd
309
310 with open(self.alias_file, 'a+') as f:
311 f.write('builtin = builtin\n')
312
313 self.alias_cmd_injector.inject_aliases(self.command_table, self.parser)
314
315 self.command_table['builtin']([], FakeParsedArgs(command='builtin'))
316 # The builtin command should be passed to the alias
317 # command when added to the table.
318 builtin_cmd.assert_called_with([], FakeParsedArgs(command='builtin'))
319
320
321class TestBaseAliasCommand(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

inject_aliasesMethod · 0.80
FakeParsedArgsClass · 0.70
writeMethod · 0.45

Tested by

no test coverage detected