aaa6d2ecb0
* 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. |
||
---|---|---|
.. | ||
cloud | ||
integration | ||
provider | ||
sanity | ||
units | ||
__init__.py | ||
ansible_util.py | ||
cache.py | ||
changes.py | ||
classification.py | ||
cli.py | ||
config.py | ||
constants.py | ||
core_ci.py | ||
cover.py | ||
coverage_util.py | ||
csharp_import_analysis.py | ||
data.py | ||
delegation.py | ||
diff.py | ||
docker_util.py | ||
env.py | ||
executor.py | ||
git.py | ||
http.py | ||
import_analysis.py | ||
init.py | ||
manage_ci.py | ||
metadata.py | ||
payload.py | ||
powershell_import_analysis.py | ||
target.py | ||
test.py | ||
thread.py | ||
types.py | ||
util.py | ||
util_common.py | ||
venv.py |