mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-14 04:41:27 +00:00
Use pytest.mark.skip instead of pytest.skip.
This commit is contained in:
@@ -17,7 +17,7 @@ from ansible.modules.storage.netapp.na_ontap_cluster \
|
||||
import NetAppONTAPCluster as my_module # module under test
|
||||
|
||||
if not netapp_utils.has_netapp_lib():
|
||||
pytestmark = pytest.skip('skipping as missing required netapp_lib')
|
||||
pytestmark = pytest.mark.skip('skipping as missing required netapp_lib')
|
||||
|
||||
|
||||
def set_module_args(args):
|
||||
|
||||
@@ -17,7 +17,7 @@ from ansible.modules.storage.netapp.na_ontap_nvme \
|
||||
import NetAppONTAPNVMe as my_module
|
||||
|
||||
if not netapp_utils.has_netapp_lib():
|
||||
pytestmark = pytest.skip('skipping as missing required netapp_lib')
|
||||
pytestmark = pytest.mark.skip('skipping as missing required netapp_lib')
|
||||
|
||||
|
||||
def set_module_args(args):
|
||||
|
||||
@@ -17,7 +17,7 @@ from ansible.modules.storage.netapp.na_ontap_vscan_on_access_policy \
|
||||
import NetAppOntapVscanOnAccessPolicy as policy_module # module under test
|
||||
|
||||
if not netapp_utils.has_netapp_lib():
|
||||
pytestmark = pytest.skip('skipping as missing required netapp_lib')
|
||||
pytestmark = pytest.mark.skip('skipping as missing required netapp_lib')
|
||||
HAS_NETAPP_ZAPI_MSG = "pip install netapp_lib is required"
|
||||
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ from ansible.modules.storage.netapp.na_ontap_vscan_scanner_pool \
|
||||
import NetAppOntapVscanScannerPool as scanner_module # module under test
|
||||
|
||||
if not netapp_utils.has_netapp_lib():
|
||||
pytestmark = pytest.skip('skipping as missing required netapp_lib')
|
||||
pytestmark = pytest.mark.skip('skipping as missing required netapp_lib')
|
||||
|
||||
|
||||
def set_module_args(args):
|
||||
|
||||
Reference in New Issue
Block a user