
    yIf                    Z    d dl mZ d dlZd dlZd dlmZmZ d dlmZ  G d de          Z	dS )    )annotationsN)LintModuleTestMessageCounter)
OutputLinec                  b    e Zd ZdZ G d dej                  Z ej        de           ddZdS )LintModuleOutputUpdatezXClass to be used if expected output files should be updated instead of
    checked.
    c                      e Zd ZdZdZdZdS )"LintModuleOutputUpdate.TestDialectzDialect used by the csv writer.:
N)__name__
__module____qualname____doc__	delimiterlineterminator     i/var/www/piapp/venv/lib/python3.11/site-packages/pylint/testutils/functional/lint_module_output_update.pyTestDialectr
      s        --	r   r   test_r   expected_outputlist[OutputLine]actual_outputreturnNonec                   |sIt           j                            | j        j                  rt          j        | j        j                   dS t          | j        j        dd          5 }t          j        |d          }|D ])}|	                    |
                                           *	 ddd           dS # 1 swxY w Y   dS )zDOverwrite or remove the expected output file based on actual output.Nwzutf-8)encodingr   )dialect)ospathexists
_test_filer   removeopencsvwriterwriterowto_csv)selfr   r   r   fr)   lines          r   _check_output_textz)LintModuleOutputUpdate._check_output_text   s     	w~~do=>> ;	$/9:::F$/13III 	/QZ6222F% / /..../	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/s   (AB99B= B=N)r   r   r   r   r   r   r   r   )	r   r   r   r   r(   excelr   register_dialectr/   r   r   r   r   r      su             ci    C---/ / / / / /r   r   )

__future__r   r(   r"   !pylint.testutils.lint_module_testr   r   pylint.testutils.output_liner   r   r   r   r   <module>r5      s   
 # " " " " " 



 				 L L L L L L L L 3 3 3 3 3 3/ / / / /^ / / / / /r   