mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-19 19:30:22 -07:00
Port some tests away from nose as examples (#33437)
We don't need to use both nose and pytest. Once we get rid of all uses of nose we can remove the extra dependency
This commit is contained in:
parent
c35a562345
commit
e499bccbaa
7 changed files with 19 additions and 23 deletions
|
@ -21,13 +21,14 @@ from __future__ import (absolute_import, division, print_function)
|
|||
|
||||
import copy
|
||||
|
||||
from nose.plugins.skip import SkipTest
|
||||
import pytest
|
||||
|
||||
from ansible.module_utils.aws.core import HAS_BOTO3
|
||||
from ansible.compat.tests.mock import MagicMock
|
||||
from units.modules.utils import set_module_args
|
||||
|
||||
if not HAS_BOTO3:
|
||||
raise SkipTest("test_api_gateway.py requires the `boto3` and `botocore` modules")
|
||||
pytestmark = pytest.mark.skip("test_api_gateway.py requires the `boto3` and `botocore` modules")
|
||||
|
||||
# these are here cause ... boto!
|
||||
from botocore.exceptions import ClientError
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue