(self)
| 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' |
nothing calls this directly
no test coverage detected