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.
ansible/test/units
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.
5 years ago
..
cli ansible-galaxy: add collection sub command (#57106) 5 years ago
compat Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago
config fixes to config manager (#58530) 5 years ago
contrib Fix vmware_inventory unit tests so they run. 6 years ago
errors Add better error when k=v syntax is used with YAML in tasks (#41754) 6 years ago
executor Support using importlib on py>=3 to avoid imp deprecation (#54883) 5 years ago
galaxy ansible-galaxy: add collection sub command (#57106) 5 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 9 years ago
mock Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago
module_utils Add unit tests for lenient_lowercase function (#58586) 5 years ago
modules Correct places where match was intended 5 years ago
parsing Correct places where match was intended 5 years ago
playbook role: Fix role's hash_params (#55263) 5 years ago
plugins Correct places where match was intended 5 years ago
pytest/plugins Move ansible-test unit coverage code into plugin. 5 years ago
regex Add toggle to control invalid character substitution in group names (#52748) 5 years ago
template Add back _contains_vars method as maybe_template (#58290) 5 years ago
utils patch ansible-connection collection plugin loading (#59119) 5 years ago
vars Fix inventory cache interface (#50446) 5 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
ansible.cfg Fix ansible-test config management. 7 years ago
test_constants.py 1st part of ansible config, adds ansible-config to view/manage configs (#12797) 7 years ago
test_context.py Save the command line arguments into a global context 6 years ago