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

Method test_external_alias_command

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

Source from the content-addressed store, hash-verified

280 )
281
282 def test_external_alias_command(self):
283 with open(self.alias_file, 'a+') as f:
284 f.write('my-alias = !my-alias-value\n')
285
286 self.alias_cmd_injector.inject_aliases(self.command_table, self.parser)
287 self.assertIn('my-alias', self.command_table)
288 self.assertIsInstance(
289 self.command_table['my-alias'], ExternalAliasCommand
290 )
291
292 def test_clobbers_builtins(self):
293 builtin_cmd = mock.Mock(spec=CLICommand)

Callers

nothing calls this directly

Calls 2

inject_aliasesMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected