mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Replace nose with pytest
This commit is contained in:
@@ -19,12 +19,13 @@
|
||||
from units.compat.mock import patch
|
||||
from units.modules.utils import set_module_args as _set_module_args, AnsibleExitJson, AnsibleFailJson, ModuleTestCase
|
||||
|
||||
from nose.plugins.skip import SkipTest
|
||||
import pytest
|
||||
|
||||
try:
|
||||
from vspk import v5_0 as vsdk
|
||||
from bambou import nurest_session
|
||||
except ImportError:
|
||||
raise SkipTest('Nuage Ansible modules requires the vspk and bambou python libraries')
|
||||
pytestmark = pytest.mark.skip('Nuage Ansible modules requires the vspk and bambou python libraries')
|
||||
|
||||
|
||||
def set_module_args(args):
|
||||
|
||||
Reference in New Issue
Block a user