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

for version in SUPPORTED_PYTHON_VERSIONS:
        
        if args.python and version != args.python_version:
            continue
        if not args.python and version not in available_versions:
            display.warning("Skipping unit tests on Python %s due to missing interpreter." % version)
            continue
        if args.requirements_mode != 'skip':
            install_command_requirements(args, version)
        env = ansible_environment(args)
        cmd = [
            'pytest',
            '--boxed',
            '-r', 'a',
            '-n', str(args.num_workers) if args.num_workers else 'auto',
            '--color',
            'yes' if args.color else 'no',
            '-p', 'no:cacheprovider',
            '-c', os.path.join(ANSIBLE_TEST_DATA_ROOT, 'pytest.ini'),
            '--junit-xml', os.path.join(ResultType.JUNIT.path, 'python%s-units.xml' % version),
        ]
        if not data_context().content.collection:
            cmd.append('--durations=25')
        if version != '2.6':
            
            cmd.append('--strict-markers')
        plugins = []
        if args.coverage:
            plugins.append('ansible_pytest_coverage')
        if data_context().content.collection: