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

plugins.append('ansible_pytest_collections')
        if plugins:
            env['PYTHONPATH'] += ':%s' % os.path.join(ANSIBLE_TEST_DATA_ROOT, 'pytest/plugins')
            for plugin in plugins:
                cmd.extend(['-p', plugin])
        if args.collect_only:
            cmd.append('--collect-only')
        if args.verbosity:
            cmd.append('-' + ('v' * args.verbosity))
        if version in REMOTE_ONLY_PYTHON_VERSIONS:
            test_paths = remote_paths
        else:
            test_paths = paths
        if not test_paths:
            continue
        cmd.extend(test_paths)
        version_commands.append((version, cmd, env))
    if args.requirements_mode == 'only':
        sys.exit()
    for version, command, env in version_commands:
        check_pyyaml(args, version)
        display.info('Unit test with Python %s' % version)
        try:
            with coverage_context(args):
                intercept_command(args, command, target_name='units', env=env, python_version=version)
        except SubprocessError as ex:
            
            if ex.status != 5:
                raise