mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-15 21:31:02 +00:00
Added __main__ method to tests so they can be run directly through Python
This commit is contained in:
committed by
Toshio Kuratomi
parent
1a602096f5
commit
eeb8128baf
@@ -172,3 +172,7 @@ class FcNetworkModuleSpec(unittest.TestCase,
|
||||
ansible_facts=dict(fc_network=resource_data),
|
||||
msg=FcNetworkModule.MSG_ALREADY_PRESENT
|
||||
)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
@@ -111,3 +111,7 @@ class NetworkSetFactsSpec(unittest.TestCase,
|
||||
self.mock_ansible_module.exit_json.assert_called_once_with(
|
||||
changed=False,
|
||||
ansible_facts=dict(network_sets=network_sets))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user