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

Method test_run_external_command

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

Source from the content-addressed store, hash-verified

795 self.subprocess_call = mock.Mock(spec=subprocess.call)
796
797 def test_run_external_command(self):
798 alias_value = '!ls'
799 alias_cmd = ExternalAliasCommand(
800 'alias-name', alias_value, invoker=self.subprocess_call
801 )
802 alias_cmd([], FakeParsedArgs(command='alias-name'))
803 self.subprocess_call.assert_called_with('ls', shell=True)
804
805 def test_external_command_returns_rc_of_subprocess_call(self):
806 alias_value = '!ls'

Callers

nothing calls this directly

Calls 2

FakeParsedArgsClass · 0.70

Tested by

no test coverage detected