change keyword return to results (#76515)

value is getting associated to python keyword return
pull/76524/head
Edward Hilgendorf 3 years ago committed by GitHub
parent 894fbd6990
commit d0de3d3dc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -199,9 +199,9 @@ above, either by throwing an exception or ensuring that they haven't been called
module = MagicMock()
module.exit_json.side_effect = AnsibleExitJson(Exception)
with self.assertRaises(AnsibleExitJson) as result:
return = my_module.test_this_function(module, argument)
results = my_module.test_this_function(module, argument)
module.fail_json.assert_not_called()
assert return["changed"] == True
assert results["changed"] == True
API definition with unit test cases
-----------------------------------

Loading…
Cancel
Save