Skip to content

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

Open
@chamakov

Description

@chamakov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions