From 653f8449054f0dd05d036aecad4f6c7734f1e83a Mon Sep 17 00:00:00 2001 From: "Bradley A. Thornton" Date: Wed, 10 May 2023 13:20:17 -0700 Subject: [PATCH] Restore inject only (#179) --- src/tox_ansible/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tox_ansible/plugin.py b/src/tox_ansible/plugin.py index db5ef40..c3f11c8 100644 --- a/src/tox_ansible/plugin.py +++ b/src/tox_ansible/plugin.py @@ -375,7 +375,7 @@ def conf_commands_for_integration_unit( envtmpdir = env_conf["envtmpdir"] # Use pytest ansible unit inject only to inject the collection path # into the collection finder - command = f"python -m pytest {TOX_WORK_DIR}/tests/{test_type}" + command = f"python -m pytest --ansible-unit-inject-only {TOX_WORK_DIR}/tests/{test_type}" unit_ch_dir = f"{envtmpdir}/collections/" if test_type == "unit": commands.append(f"bash -c 'cd {unit_ch_dir} && {command}'")