diff --git a/tests/unit/modules/test_vsphere.py b/tests/unit/modules/test_vsphere.py index 916c09d2c6b3..5b61aa0257d2 100644 --- a/tests/unit/modules/test_vsphere.py +++ b/tests/unit/modules/test_vsphere.py @@ -1478,6 +1478,7 @@ def test_success_output(self): @skipIf(NO_MOCK, NO_MOCK_REASON) +@skipIf(not HAS_PYVMOMI, 'The \'pyvmomi\' library is missing') @skipIf(not vsphere.HAS_JSONSCHEMA, 'The \'jsonschema\' library is missing') class RemoveCapacityFromDiskgroupTestCase(TestCase, LoaderModuleMockMixin): '''