Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
@chamakov

Description

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

        AltStyle によって変換されたページ (->オリジナル) /