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/lib/ansible_test/_data
Matt Clay aaa6d2ecb0
Fix ansible-test pytest plugin loading. (#62119)
* Avoid assertion rewriting in pytest plugins.

Adding PYTEST_DONT_REWRITE to the ansible-test pytest plugin docstrings disables assertion rewriting in pytest for those plugins.

This avoids warnings during test execution if the plugins are loaded multiple times (such as being imported within tests).

* Run ansible-test pytest plugins early.

The ansible-test pytest plugins need to load and run earlier than conftest modules.

To facilitate this, the pytest_configure function is run during loading, which works since they are loaded (but not always run) before conftest modules are loaded.

A check has also been added to the pytest_configure functions to prevent them from running multiple times in the same process.

* Load pytest plugins using an env var.

The -p command line option loads plugins before conftest, but only during collection.
The PYTEST_PLUGINS environment variable loads plugins before confest, both during collection and test execution.
5 years ago
..
cli Prepare ansible-test for inclusion in setup.py (#60294) 5 years ago
completion Update Fedora 29 test image 5 years ago
injector Additional ansible-test path fixes. (#60300) 5 years ago
playbooks PowerShell - Added coverage collector (#59009) 5 years ago
pytest/plugins Fix ansible-test pytest plugin loading. (#62119) 5 years ago
requirements bump hcloud version to 1.4.1 (#62097) 5 years ago
sanity Fix paths in sanity tests. 5 years ago
setup Support windows-integration on collections. (#60984) 5 years ago
ansible.cfg Update ansible-test integration config handling. (#60448) 5 years ago
coveragerc Move ansible-test coverage config to test/lib/ 5 years ago
inventory Update ansible-test collection inventory handling. (#61031) 5 years ago
pytest.ini Relocate ansible-test code. (#60147) 5 years ago
tox.ini Relocate ansible-test code. (#60147) 5 years ago
versions.py Relocate ansible-test code. (#60147) 5 years ago
virtualenvcheck.py Work around virtualenv/venv issue in ansible-test. (#62111) 5 years ago
yamlcheck.py Relocate ansible-test code. (#60147) 5 years ago