관리-도구
편집 파일: find_functional_tests.cpython-311.pyc
� �܋f� � �b � d dl mZ d dlZd dlmZ d dlmZ dZ dZ h d�Z h d�Z dd �Zdd�ZdS )� )�annotationsN)�Path)�FunctionalTestFile�0 � > �ext� regression� regression_02�deprecated_relative_import> r � docparamsr � input_dir� Path | str�return�list[FunctionalTestFile]c �z � g }t t | � � � � t j | � � D ]�\ }}}|� d� � r�|� � � |� � � |D ]@}|dk r8|� d� � r#|� t ||� � � � �A��|S )z*Get all functional tests in the input_dir.�__pycache__z__init__.py�.py)�!_check_functional_tests_structurer �os�walk�endswith�sort�appendr )r �suite�dirpath�dirnames� filenames�filenames ��/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/testutils/functional/find_functional_tests.py�(get_functional_test_files_from_directoryr ! s� � � �E�%�d�9�o�o�6�6�6�(*�� �(:�(:� D� D�$���9����M�*�*� ��� � ����������!� D� D�H��=�(�(�X�->�->�u�-E�-E�(����/���B�B�C�C�C�� D� �L� � directoryr �Nonec �� � t | � � j � d� � rdS t � � }t � � }| � � � D ]�}|� � � r;|j dk r/|j � d� � s|� |� � �Q|� � � r$|� |� � t |� � ��t |� � t k s)J | � d�dt |� � � dt � d�z � � �|D ]�}|j |j � d� � d z }|� � � rJ |� d |� d �� � �t |j j � � dk sc|j j t vrP|j j j t vr8|j � |j j � � sJ |� d|j � �� � ���dS ) z?Check if test directories follow correct file/folder structure.�_Nr z* contains too many functional tests files �(z > z).r z should go in �.� z should not go in )r �stem� startswith�set�iterdir�is_file�suffix�add�is_dirr �len�!REASONABLY_DISPLAYABLE_VERTICALLY�parent�split�exists�IGNORED_PARENT_DIRS�IGNORED_PARENT_PARENT_DIRS)r"