From 8743b20c8ea9ebce21ad7f1b7c613c9cc521dbd5 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 13 Feb 2018 11:04:19 -0500 Subject: [PATCH] skip aws inventory test if no boto --- test/units/plugins/inventory/test_aws_ec2.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/units/plugins/inventory/test_aws_ec2.py b/test/units/plugins/inventory/test_aws_ec2.py index 02f91926def..339a0111e98 100644 --- a/test/units/plugins/inventory/test_aws_ec2.py +++ b/test/units/plugins/inventory/test_aws_ec2.py @@ -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