File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
tests/unit/plugins/modules Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ def main():
335
335
elif module .params ['state' ] == 'absent' :
336
336
if exists (module ):
337
337
command_output = uninstall (module )
338
- if command_output is not None and len ( command_output ) == 3 and exists (module ):
338
+ if command_output is not None and exists (module ):
339
339
rc , out , err = command_output
340
340
module .fail_json (
341
341
msg = "Gem could not be removed" ,
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ def new(module):
52
52
53
53
def patch_run_command (self ):
54
54
target = 'ansible.module_utils.basic.AnsibleModule.run_command'
55
+ mock = self .mocker .patch (target )
56
+ mock .return_value = (0 , '' , '' )
55
57
return self .mocker .patch (target )
56
58
57
59
def test_fails_when_user_install_and_install_dir_are_combined (self ):
You can’t perform that action at this time.
0 commit comments