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
Sviatoslav Sydorenko beb70daf14 Fix pytest collection during test_host partial run
Sometimes pytest errors out with an `ImportError` during its tests
collection stage when a Python package/directory containing the test
module does not have an `__init__.py` in it. This is being observed
under Python 3.9 and higher.

The patch provides a workaround for this problem but does not address
the root cause which is currently unknown.

Ref:
https://github.com/ansible/ansible/pull/78585#issuecomment-1220885431
2 years ago
..
_vendor Use unittest.mock instead of mock. (#77883) 2 years ago
ansible_test Avoid deprecated method in unit tests. 2 years ago
cli add required file to collection skeleton (#77418) 2 years ago
compat Remove unit test Python 2.6 compat. (#78369) 2 years ago
config Yolo (#77554) 2 years ago
errors Clean up unit tests. (#78498) 2 years ago
executor Replace get_persistent_connection_options in task_executor with get_options (#74446) 2 years ago
galaxy Relax minimal config to enable manifest functionality (#78574) 2 years ago
inventory Fix pytest collection during test_host partial run 2 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 9 years ago
mock Use unittest.mock instead of mock. (#77883) 2 years ago
module_utils Correctly get the filename from a url in fetch_file. Fixes #29680 (#78383) 2 years ago
modules Prefer unittest.mock over mock. (#77886) 2 years ago
parsing Remove unit test pytz requirement. (#78368) 2 years ago
playbook Use classproperty to access field attributes of a class (#78180) 2 years ago
plugins Move handler processing into new PlayIterator state (#77955) 2 years ago
regex Add toggle to control invalid character substitution in group names (#52748) 5 years ago
template Use unittest.mock instead of mock. (#77883) 2 years ago
utils Preflight utf8 encodings check (#78175) 2 years ago
vars Use unittest.mock instead of mock. (#77883) 2 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
requirements.txt Update unit test controller requirements. (#78376) 2 years ago
test_constants.py Remove some constants.py deprecated items (#70466) 4 years ago
test_context.py Clean up unit test boilerplate. 4 years ago
test_no_tty.py ansible-test - Fix subprocess management. (#77641) 2 years ago