Submit
Path:
~
/
/
opt
/
cloudlinux
/
venv
/
lib64
/
python3.11
/
site-packages
/
pylint
/
testutils
/
functional
/
__pycache__
/
File Content:
find_functional_tests.cpython-311.opt-1.pyc
� � h� � �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 �f/opt/cloudlinux/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 |� � ��|D ]r}|j |j � d� � d z }t |j j � � dk s+|j j t vr|j j j t vr �sdS )z?Check if test directories follow correct file/folder structure.�_Nr r � )r �stem� startswith�set�iterdir�is_file�suffix�add�is_dirr �parent�split�len�IGNORED_PARENT_DIRS�IGNORED_PARENT_PARENT_DIRS)r"