##### 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: https://github.com/webknjaz/fqcn_conftest_repro/commit/b07826c54e01c6965cb63aa0a8cada602a311911

##### 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.

from ..util_common import (
    intercept_command,
    ResultType,
    handle_layout_messages,
)
from ..ansible_util import (
    ansible_environment,
    check_pyyaml,
)
from ..target import (
    walk_internal_targets,
    walk_units_targets,
)
from ..config import (
    UnitsConfig,
)
from ..coverage_util import (
    coverage_context,
)
from ..data import (
    data_context,
)
from ..executor import (
    AllTargetsSkipped,
    Delegate,
    get_changes_filter,
    install_command_requirements,
    SUPPORTED_PYTHON_VERSIONS,
)
def command_units(args):