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
Marc Abramowitz 372a29744b Make AnsibleError a plain ol' exception
Python's Exception constructor already takes a `message` as a parameter,
which you can then get at by doing str(e) (e.message was deprecated).

The reason I bothered to make this change was because I was debugging
with pdb and I noticed that AnsibleErrors don't give useful information
in pdb (probably because they don't have a __repr__ method that prints
the `msg` attribute).

    (Pdb) c
    > /Users/marca/dev/git-repos/ansible/lib/ansible/runner/__init__.py(599)_executor()
    -> msg = str(ae)
    (Pdb) ae
    AnsibleError()
11 years ago
..
inventory_test_data Add stub tests for module args parsing. 11 years ago
module_tests Docker test does not require the mock module 11 years ago
vault_test_data Make VaultEditor Tests compatible with FIPS mode 11 years ago
README.md Rename tests to test, use old directory name. 12 years ago
TestConstants.py Rename tests to test, use old directory name. 12 years ago
TestFilters.py Add filter to turn a string into a UUID 11 years ago
TestInventory.py Merge branch 'svg_and_inventory_refactor' into devel 12 years ago
TestModuleUtilsBasic.py typofixes - https://github.com/vlajos/misspell_fixer 11 years ago
TestModuleUtilsDatabase.py Exception message changes 11 years ago
TestModules.py Update module test code to avoid pycs (that are not used) 11 years ago
TestPlayVarsFiles.py Split out various vars-related things to avoid merging too early 11 years ago
TestSynchronize.py fixed typos found by RETF rules in PY files 12 years ago
TestUtils.py Make AnsibleError a plain ol' exception 11 years ago
TestUtilsStringFunctions.py Unit tests for ansible.utils 12 years ago
TestVault.py Skip some md5 related unit tests when running in fips mode 11 years ago
TestVaultEditor.py Make VaultEditor Tests compatible with FIPS mode 11 years ago
ansible.cfg Rename tests to test, use old directory name. 12 years ago

README.md

Unit tests

Tests at code level. Should be concise and to the point, and organized by subject.