mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-05 08:41:29 -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
|
@ -15,20 +15,18 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import pytest
|
||||
import os
|
||||
import json
|
||||
import collections
|
||||
|
||||
import pytest
|
||||
from . placebo_fixtures import placeboify, maybe_sleep
|
||||
from nose.plugins.skip import SkipTest
|
||||
|
||||
from ansible.modules.cloud.amazon import data_pipeline
|
||||
from ansible.module_utils._text import to_text
|
||||
|
||||
try:
|
||||
import boto3
|
||||
except ImportError:
|
||||
raise SkipTest("test_api_gateway.py requires the `boto3` and `botocore` modules")
|
||||
# test_api_gateway.py requires the `boto3` and `botocore` modules
|
||||
boto3 = pytest.importorskip('boto3')
|
||||
|
||||
|
||||
@pytest.fixture(scope='module')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue