ansible/test
Toshio Kuratomi 87601969a3 Correct places where match was intended
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.
2019-07-18 17:10:58 -07:00
..
cache
env
integration Add lambda_bucket_event module (#58059) 2019-07-18 10:54:01 -07:00
legacy safe_eval fix (#57188) 2019-06-06 15:36:22 -04:00
results
runner add xmltodict to azure requirements file (#55748) 2019-07-18 01:32:51 -04:00
sanity pip: Remove unused option use_mirrors and remove all ignore.txt entries 2019-07-18 16:38:37 +02:00
units Correct places where match was intended 2019-07-18 17:10:58 -07:00
utils Show ansible-test --explain errors in CI. 2019-07-17 15:34:00 -07:00