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/module_utils/basic
Matt Clay 4ec023efe0
[stable-2.18] Cover unit tests with mypy (#84084) (#84086)
* Added support for testing unit tests with mypy.
* Added support for ignoring individual mypy error codes.
* Added missing assert on unit tests and marked xfail.
* Added type hints for some unit tests.
* Added ignores for unit tests not passing mypy.
* Fixed incorrect autouse argument in unit test fixtures.
* Fixed minor issues causing problems with mypy in unit tests.

(cherry picked from commit 955e310b4c)
1 year ago
..
__init__.py AnsibleModules.log() fix for python3 10 years ago
test__log_invocation.py Require `from __future__ import annotations` (#81902) 2 years ago
test__symbolic_mode_to_octal.py Require `from __future__ import annotations` (#81902) 2 years ago
test_argument_spec.py [stable-2.18] Cover unit tests with mypy (#84084) (#84086) 1 year ago
test_atomic_move.py fix copy module update atime/mtime (#83235) 1 year ago
test_command_nonexisting.py Require `from __future__ import annotations` (#81902) 2 years ago
test_deprecate_warn.py [stable-2.18] Move ansible-deprecated ignores for tests inline (#83989) (#83990) 1 year ago
test_dict_converters.py Remove Python 2 compat (via six) from unit tests 2 years ago
test_exit_json.py [stable-2.18] Cover unit tests with mypy (#84084) (#84086) 1 year ago
test_filesystem.py test: update tests (#83686) 1 year ago
test_get_available_hash_algorithms.py Unit test cleanup (#81958) 2 years ago
test_get_file_attributes.py Require `from __future__ import annotations` (#81902) 2 years ago
test_get_module_path.py Remove Python 2 compat (via six) from unit tests 2 years ago
test_heuristic_log_sanitize.py Remove Python 2.x compat from unit tests (#82109) 2 years ago
test_imports.py Remove Python 2 compat (via six) from unit tests 2 years ago
test_log.py Remove extraneous pylint ignore (#83257) 2 years ago
test_no_log.py [stable-2.18] Cover unit tests with mypy (#84084) (#84086) 1 year ago
test_platform_distribution.py Remove Python 2 compat (via six) from unit tests 2 years ago
test_run_command.py Remove extraneous pylint ignore (#83257) 2 years ago
test_safe_eval.py [stable-2.18] Cover unit tests with mypy (#84084) (#84086) 1 year ago
test_sanitize_keys.py Typo fixes and other bits and bobs (#83672) 1 year ago
test_selinux.py Remove Python 2 compat (via six) from unit tests 2 years ago
test_set_cwd.py Remove Python 2.x compat from unit tests (#82109) 2 years ago
test_set_mode_if_different.py 🔥 Exterminate `__builtin__` import from tests (#82569) 2 years ago
test_tmpdir.py Remove extraneous pylint ignore (#83257) 2 years ago