From eeb8128baf2edd539487036883e24c97c1f5d171 Mon Sep 17 00:00:00 2001 From: Felipe Garcia Bulsoni Date: Wed, 30 Aug 2017 14:41:12 -0300 Subject: [PATCH] Added __main__ method to tests so they can be run directly through Python --- .../remote_management/oneview/test_oneview_fc_network.py | 4 ++++ .../oneview/test_oneview_network_set_facts.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/test/units/modules/remote_management/oneview/test_oneview_fc_network.py b/test/units/modules/remote_management/oneview/test_oneview_fc_network.py index 39b8f8497a..1509300292 100644 --- a/test/units/modules/remote_management/oneview/test_oneview_fc_network.py +++ b/test/units/modules/remote_management/oneview/test_oneview_fc_network.py @@ -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() diff --git a/test/units/modules/remote_management/oneview/test_oneview_network_set_facts.py b/test/units/modules/remote_management/oneview/test_oneview_network_set_facts.py index 6fe66df45d..9249e06f68 100644 --- a/test/units/modules/remote_management/oneview/test_oneview_network_set_facts.py +++ b/test/units/modules/remote_management/oneview/test_oneview_network_set_facts.py @@ -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()