Use pytest.mark.skip instead of pytest.skip.

This commit is contained in:
Matt Clay 2019-03-26 10:53:21 -07:00
parent 51f38b090e
commit 399fc110e7
4 changed files with 4 additions and 4 deletions

View file

@ -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):

View file

@ -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):

View file

@ -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"

View file

@ -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):