mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Fix failing test modules due to incorrect use of pytest.skip() (#54282)
This commit is contained in:
committed by
Matt Clay
parent
1e3428a766
commit
51f38b090e
@@ -17,7 +17,7 @@ from ansible.modules.storage.netapp.na_ontap_cifs \
|
||||
import NetAppONTAPCifsShare 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_cifs_server \
|
||||
import NetAppOntapcifsServer 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):
|
||||
|
||||
Reference in New Issue
Block a user