o
    b                     @   sX   d Z ddlmZ ddlZddlmZ ejdddd Zejdddd	 Z	d
d Z
dS )zDTests for the pylint checker in :mod:`pylint.extensions.emptystring
    NCompareToEmptyStringCheckermodule)scopec                 C   s   t S )Nr   )checker r   f/var/www/secure340b-portal/env/lib/python3.10/site-packages/pylint/test/extensions/test_emptystring.pyr      s   r   c                 C   s   dgS )NIr   )disabler   r   r   r
      s   r
   c                 C   s   t t t tdd}| |g | jj}g d}t|t|ks%J t	||D ]\}}|j
dks5J |jdks<J |j|ksCJ q*d S )Ndatazempty_string_comparison.py)   	         zcompare-to-empty-stringz!Avoid comparisons to empty string)ospjoindirnameabspath__file__checkreportermessageslenzipsymbolmsgline)ZlinterZ	elif_testZmsgsZexpected_linenor   linenor   r   r   test_emptystring_message   s   r   )__doc__os.pathpathr   ZpytestZpylint.extensions.emptystringr   Zfixturer   r
   r   r   r   r   r   <module>   s   	



