Added __main__ method to tests so they can be run directly through Python
parent
1a602096f5
commit
eeb8128baf
|
@ -172,3 +172,7 @@ class FcNetworkModuleSpec(unittest.TestCase,
|
||||||
ansible_facts=dict(fc_network=resource_data),
|
ansible_facts=dict(fc_network=resource_data),
|
||||||
msg=FcNetworkModule.MSG_ALREADY_PRESENT
|
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(
|
self.mock_ansible_module.exit_json.assert_called_once_with(
|
||||||
changed=False,
|
changed=False,
|
||||||
ansible_facts=dict(network_sets=network_sets))
|
ansible_facts=dict(network_sets=network_sets))
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue