ansible/test/units/parsing
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
..
fixtures lib/ansible/parsing/ajson.py: added UNIT-tests (#56398) 2019-05-17 23:29:42 -07:00
utils Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
vault Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
yaml Handle vaulted non-ascii characters for Python2 (#58503) 2019-06-28 13:23:15 -04:00
__init__.py
test_ajson.py lib/ansible/parsing/ajson.py: added UNIT-tests (#56398) 2019-05-17 23:29:42 -07:00
test_dataloader.py dataloader: unit tests (#50942) 2019-01-22 09:51:27 -05:00
test_metadata.py Correct places where match was intended 2019-07-18 17:10:58 -07:00
test_mod_args.py Fieldattribute inheritance with defaults (#50891) 2019-01-23 11:40:07 -06:00
test_splitter.py
test_unquote.py