mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87601969a3
pytest.raises has two parameters, message and match. message is meant to be the error message that pytest gives when the tested code does not raise the expected exception. match is the string that pytest expects to be a match for the repr of the exception. Unfortunately, it seems that message is often mistakenly used where match is meant. Fix those cases. message is also deprecated so removed our usage of it. Perhaps we should write a sanity test later that prevents the use of pytest.raises(message) to avoid this mistake. seealso: https://docs.pytest.org/en/4.6-maintenance/deprecations.html#message-parameter-of-pytest-raises Also update the exception message tested for as we're now properly detecting that the messages have changed. |
5 years ago | |
---|---|---|
.. | ||
fixtures | ||
placebo_recordings | 6 years ago | |
__init__.py | ||
test_aws_api_gateway.py | ||
test_aws_direct_connect_connection.py | ||
test_aws_direct_connect_link_aggregation_group.py | ||
test_aws_s3.py | ||
test_cloudformation.py | 5 years ago | |
test_data_pipeline.py | ||
test_ec2_group.py | 6 years ago | |
test_ec2_utils.py | ||
test_ec2_vpc_nat_gateway.py | ||
test_ec2_vpc_vpn.py | ||
test_iam_password_policy.py | ||
test_kinesis_stream.py | ||
test_lambda.py | ||
test_lambda_policy.py | ||
test_redshift_cross_region_snapshots.py | ||
test_route53_zone.py | 6 years ago | |
test_s3_bucket.py | ||
test_s3_bucket_notification.py | 5 years ago |