1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

skip aws inventory test if no boto

This commit is contained in:
Brian Coca 2018-02-13 11:04:19 -05:00
parent 527fc492b9
commit 8743b20c8e

View file

@ -24,6 +24,10 @@ __metaclass__ = type
import pytest
import datetime
# Just to test that we have the prerequisite for InventoryModule and instance_data_filter_to_boto_attr
boto3 = pytest.importorskip('boto3')
botocore = pytest.importorskip('botocore')
from ansible.errors import AnsibleError
from ansible.plugins.inventory.aws_ec2 import InventoryModule
from ansible.plugins.inventory.aws_ec2 import instance_data_filter_to_boto_attr