You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lookup plugin is installed and available for Ansible. ansible-galaxy collection list shows the collection with the lookup plugin as installed in /Users/maiera/.ansible/collections/ansible_collections and I did verify that up to version 24.1.3, the code in that install directory gets control during the test. I have no ANSIBLE env vars set, and no ansible.cfg file. ansible-config dump reports:
So my collection is found by Ansible using this default configuration.
Pytest command line:
pytest --cov=myproject --cov-config .coveragerc --cov-append --cov-report=term-missing -s --ansible-host-pattern localhost test
Why is the lookup no longer found starting with pytest-ansible version 24.1.4?
Is this something I can fix, or does this require a fix by pytest-ansible?
As a workaround, I am pinning pytest-ansible<=24.1.4 at the moment, to have my tests working.
The text was updated successfully, but these errors were encountered:
I am developing an Ansible lookup, and test that using pytest and pytest-ansible.
The pytest test function looks like this (simplified):
Up to pytest-ansible version 24.1.3, this worked fine.
Starting with pytest-ansible version 24.1.4, this fails because the lookup plugin is no longer found, and I get:
The lookup plugin is installed and available for Ansible.
ansible-galaxy collection list
shows the collection with the lookup plugin as installed in/Users/maiera/.ansible/collections/ansible_collections
and I did verify that up to version 24.1.3, the code in that install directory gets control during the test. I have no ANSIBLE env vars set, and no ansible.cfg file.ansible-config dump
reports:So my collection is found by Ansible using this default configuration.
Pytest command line:
Why is the lookup no longer found starting with pytest-ansible version 24.1.4?
Is this something I can fix, or does this require a fix by pytest-ansible?
As a workaround, I am pinning pytest-ansible<=24.1.4 at the moment, to have my tests working.
The text was updated successfully, but these errors were encountered: