mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-24 04:54:00 -07:00
A little unittest refactoring * Add a class decorator to generate tests when using a unittest.TestCase base class * Add a TestCase subclass with setUp() and tearDown() that sets up module parameter parsing * Move test_safe_eval to use the class decorator and ModuleTestCase base class * Move testing of set_mode_if_different into its own file and separate some test methods out so we get better errors and more coverage in case of errors. * Naming convention for test cases doesn't need to duplicate information that's already in the file path. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test__log_invocation.py | ||
| test_exit_json.py | ||
| test_heuristic_log_sanitize.py | ||
| test_known_hosts.py | ||
| test_log.py | ||
| test_no_log.py | ||
| test_run_command.py | ||
| test_safe_eval.py | ||
| test_set_mode_if_different.py | ||