mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Added __main__ method to tests so they can be run directly through Python
This commit is contained in:
parent
1a602096f5
commit
eeb8128baf
2 changed files with 8 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue