mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
update action unit test for powershell shebang behavior
This commit is contained in:
@@ -231,7 +231,7 @@ class TestActionBase(unittest.TestCase):
|
||||
mock_connection.module_implementation_preferences = ('.ps1',)
|
||||
(style, shebang, data, path) = action_base._configure_module('stat', mock_task.args)
|
||||
self.assertEqual(style, "new")
|
||||
self.assertEqual(shebang, None)
|
||||
self.assertEqual(shebang, u'#!powershell')
|
||||
|
||||
# test module not found
|
||||
self.assertRaises(AnsibleError, action_base._configure_module, 'badmodule', mock_task.args)
|
||||
|
||||
Reference in New Issue
Block a user