
    BTha	                     2    d dl mZ d dlmZ  G d de      Zy)    )ABC)Typec                       e Zd ZdZddZy)BaseStandardTestsz
    :private:
    Nc                    	 ddt         ddf	fd	 	 j                         J d       t        d j                   d        t        t	               D cg c]  }|j                  d      s| c}      }t        t	              D cg c]  }|j                  d      s| c}      }||z
  }|r
J d	|        |D cg c]&  }t         j                  |      t        |      ur|( }}d
t        dt        f fd}|D cg c]  } ||      r| }}|rJ d| d       yc c}w c c}w c c}w c c}w )zP
        Test that no standard tests are overridden.

        :private:
        Nclsreturnc                     | j                   D ];  }|j                  j                  d      r|#t        d d|        |       = y )Nzlangchain_tests.z+Multiple standard test base classes found: z, )	__bases__
__module__
startswith
ValueError)r   basecomparison_classexplore_basess     f/var/www/catia.catastroantioquia-mas.com/valormas/lib/python3.12/site-packages/langchain_tests/base.pyr   zJBaseStandardTests.test_no_overrides_DO_NOT_OVERRIDE.<locals>.explore_bases   s`     
(??--.@A'/+/((I/04&: 
 "$'
(    z"No standard test base class found.z
Comparing z to test_zStandard tests deleted: methodc                     t        j                  |       }t        |d      sy|j                  }t	        d |D              S )N
pytestmarkFc              3   t   K   | ]0  }|j                   d k(  xr |j                  j                  d       2 yw)xfailreasonN)namekwargsget).0marks     r   	<genexpr>zXBaseStandardTests.test_no_overrides_DO_NOT_OVERRIDE.<locals>.is_xfail.<locals>.<genexpr>:   s3      GK		W$B)BBs   68)getattr	__class__hasattrr   any)r   mmarksselfs      r   is_xfailzEBaseStandardTests.test_no_overrides_DO_NOT_OVERRIDE.<locals>.is_xfail5   sC    /A1l+LLE OT  r   zDStandard tests overridden without @pytest.mark.xfail(reason="..."): zS
Note: reason is required to explain why the standard test has an expected failure.)	r   r"   printsetdirr   r!   strbool)
r'   r   running_tests
base_testsdeleted_testsoverridden_testsr(   overridden_not_xfailr   r   s
   `       @@r   !test_no_overrides_DO_NOT_OVERRIDEz3BaseStandardTests.test_no_overrides_DO_NOT_OVERRIDE
   s     	(t 	( 	( 	dnn%+Q-QQ+
4>>*$/?.@AB"%d)Jv/@/@/IVJ
 "%&6"7V6;L;LW;UVV

 #]2 L$<]O"LL  %
t~~v.g>NPV6WW 
 
	S 	T 	 "2 
&9IF 
  
 ( 	
11E0F G	
''5 K W

 
s*   D-4D-D2(D2+D7D<D<)r	   N)__name__r   __qualname____doc__r3    r   r   r   r      s    <
r   r   N)abcr   typingr   r   r7   r   r   <module>r:      s     A
 A
r   