ansible/test/units/modules/cloud
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
..
amazon Correct places where match was intended 2019-07-18 17:10:58 -07:00
cloudstack Skip tests with unsatisfied deps (#55853) 2019-06-28 13:09:36 -07:00
docker docker_* modules: improve error message when docker-py is missing (#57914) 2019-06-23 06:27:33 -04:00
google GCP deprecations (#53355) 2019-04-18 15:30:27 +01:00
kubevirt kubevirt: even more unit tests (#58593) 2019-07-05 20:35:32 +10:00
linode
linode_v4
misc Terraform: Fix unbound local error (#57044) 2019-06-17 08:23:59 +05:30
openstack
vmware
xenserver Rename xenserver_guest_facts -> xenserver_guest_info (#57032) 2019-06-30 10:04:30 -04:00
__init__.py