Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip test_aws.py if boto3/botocore are missing #17814

Merged
merged 1 commit into from
Oct 13, 2016
Merged

Skip test_aws.py if boto3/botocore are missing #17814

merged 1 commit into from
Oct 13, 2016

Conversation

alikins
Copy link
Contributor

@alikins alikins commented Sep 29, 2016

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

test/units/module_utils/ec2/test_aws.py

SUMMARY

Skip test_aws.py if boto3/botocore are missing

from ansible.module_utils.ec2 import AWSRetry

if not HAS_BOTO3:
raise SkipTest("test_aws.py requires the python modules \'boto3\' and \'botocore\'")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to use a backslash before the single quotes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@abadger
Copy link
Contributor

abadger commented Sep 29, 2016

This is okay as a quick fix but long term splitting into separate targets seems like the way to go. That way when someone runs "make aws_tests" or "make alltests" they know it ran all the tests that it can.

@mattclay mattclay merged commit 8bf4aa9 into ansible:devel Oct 13, 2016
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bugfix_pull_request labels Mar 5, 2018
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants