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.
2019-09-10 23:27:05 -07:00
..
cli Prepare ansible-test for inclusion in setup.py (#60294) 2019-08-08 16:14:19 -07:00
completion Update Fedora 29 test image 2019-08-30 19:49:40 -04:00
injector Additional ansible-test path fixes. (#60300) 2019-08-08 23:51:03 -07:00
playbooks PowerShell - Added coverage collector (#59009) 2019-08-28 07:03:23 +10:00
pytest/plugins Fix ansible-test pytest plugin loading. (#62119) 2019-09-10 23:27:05 -07:00
requirements bump hcloud version to 1.4.1 (#62097) 2019-09-10 16:49:23 -04:00
sanity Fix paths in sanity tests. 2019-08-28 20:06:22 -07:00
setup Support windows-integration on collections. (#60984) 2019-08-20 22:23:28 -07:00
ansible.cfg Update ansible-test integration config handling. (#60448) 2019-08-13 13:18:55 -07:00
coveragerc Move ansible-test coverage config to test/lib/ 2019-08-07 18:32:46 -07:00
inventory Update ansible-test collection inventory handling. (#61031) 2019-08-21 12:12:37 -07:00
pytest.ini
tox.ini
versions.py
virtualenvcheck.py Work around virtualenv/venv issue in ansible-test. (#62111) 2019-09-10 19:27:12 -07:00
yamlcheck.py