Fix failing test modules due to incorrect use of pytest.skip() (#54282)
This commit is contained in:
parent
1e3428a766
commit
51f38b090e
2 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue