-
Notifications
You must be signed in to change notification settings - Fork 24.2k
Closed
Labels
affects_2.10This issue/PR affects Ansible v2.10This issue/PR affects Ansible v2.10bugThis issue/PR relates to a bug.This issue/PR relates to a bug.support:coreThis issue/PR relates to code supported by the Ansible Engineering Team.This issue/PR relates to code supported by the Ansible Engineering Team.
Description
SUMMARY
(converted from project card created by @webknjaz)
When conftest in unit test contains something like from ansible_collections.yum_unit_test_migration_spec.yum_collection.tests.unit.compat.mock import patch, it will result in E ModuleNotFoundError: No module named 'ansible_collections'.
The workaround is to add a boilerplate conftest.py into tests root: webknjaz/fqcn_conftest_repro@b07826c
COMPONENT NAME
ansible-test
ANSIBLE VERSION
devel
CONFIGURATION
N/A
OS / ENVIRONMENT
N/A
STEPS TO REPRODUCE
Repro: https://github.com/webknjaz/fqcn_conftest_repro/tree/77347551f5fdd5185b26c752074878ea37055b77
Failure demo: https://github.com/webknjaz/fqcn_conftest_repro/runs/216648897#step:5:41
Hack demo: https://github.com/webknjaz/fqcn_conftest_repro/runs/216654164#step:5:65
EXPECTED RESULTS
Tests pass.
ACTUAL RESULTS
Tests fail.
Metadata
Metadata
Assignees
Labels
affects_2.10This issue/PR affects Ansible v2.10This issue/PR affects Ansible v2.10bugThis issue/PR relates to a bug.This issue/PR relates to a bug.support:coreThis issue/PR relates to code supported by the Ansible Engineering Team.This issue/PR relates to code supported by the Ansible Engineering Team.