Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got empty parameter set ['_testinfra_host'] after update #770

Open
chamakov opened this issue May 31, 2024 · 1 comment
Open

Got empty parameter set ['_testinfra_host'] after update #770

chamakov opened this issue May 31, 2024 · 1 comment

Comments

@chamakov
Copy link

Hey!

I'm facing some issues after updating to 10.1.1, I have my test configuration like this:

testinfra_hosts = [ "ansible://%s?force_ansible=True" % (x) for x in testinfra.utils.ansible_runner.AnsibleRunner( os.environ["MOLECULE_INVENTORY_FILE"] ).get_hosts("all") ]

that is similar to this approach

but every time I want to execute the tests I receive this message: "got empty parameter set ['_testinfra_host'], function XXXXX"

The workaround for this its to change the variable name to _testinfra_host (that overwrites the same variable on plugin.py), but Im worried about the change of behavior as I'm configuring everything as the documentation says.

Tech stack
platform linux
Python 3.9.11,
pytest-8.2.1,
pluggy-1.5.0
pytest-testinfra-10.1.1

Thanks in advance

@chamakov
Copy link
Author

chamakov commented Jun 7, 2024

@philpep any chance to check this out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant