##### SUMMARY
That would have prevented #69031.

##### ISSUE TYPE
- Feature Idea

##### COMPONENT NAME
ansible-test

SanityConfig,
)
from ..data import (
    data_context,
)
from ..coverage_util import (
    coverage_context,
)
class AnsibleDocTest(SanitySingleVersion):
    """Sanity test for ansible-doc."""
    def filter_targets(self, targets):  
        """Return the given list of test targets, filtered to include only those relevant for the test."""
        
        plugin_type_blacklist = set([
            
            'action',
            'doc_fragments',
            'filter',
            'module_utils',
            'netconf',
            'terminal',
            'test',
        ])
        plugin_paths = [plugin_path for plugin_type, plugin_path in data_context().content.plugin_paths.items() if plugin_type not in plugin_type_blacklist]
        return [target for target in targets
                if os.path.splitext(target.path)[1] == '.py'
                and os.path.basename(target.path) != '__init__.py'
                and any(is_subdir(target.path, path) for path in plugin_paths)
                ]
    def test(self, args, targets, python_version):