
    ?g                        S r SSKJr  SSKJr  SSKJr  SSKJr     S	         S
S jjr        S                   SS jjr	g)z<Helper plugin for pytester; should not be loaded on its own.    )annotations)Sequence)CollectReport)
TestReportc                v    SnU u  pVn[        U5      [        U5      [        U5      S.nXUS.n	X:X  d   U 5       eg )NT)passedskippedfailed)len)
outcomesr   r	   r
   __tracebackhide__
realpassedrealskipped
realfailedobtainedexpecteds
             =/usr/lib/python3/dist-packages/_pytest/pytester_assertions.pyassertoutcomer      sN     *2'JZj/{#j/H
 !GH))    Nc	           	     j   Sn	U R                  SS5      U R                  SS5      U R                  SS5      U R                  SS5      U R                  SS5      U R                  SS5      S	.n
UUUUUUS	.nUb  U R                  SS5      U
S'   X{S'   Ub  U R                  SS5      U
S'   XS'   X:X  d   eg
)zAssert that the specified outcomes appear with the respective
numbers (0 means it didn't occur) in the text output from a test run.Tr   r   r	   r
   errorsxpassedxfailed)r   r	   r
   r   r   r   Nwarnings
deselected)get)r   r   r	   r
   r   r   r   r   r   r   r   r   s               r   assert_outcomesr   %   s      ,,x+<<	1-,,x+,,x+<<	1-<<	1-H H '||J:'!)lA!>!+r   )r   r   r   )
r   zgtuple[Sequence[TestReport], Sequence[CollectReport | TestReport], Sequence[CollectReport | TestReport]]r   intr	   r   r
   r   returnNone)r   r   r   r   r   r   NN)r   zdict[str, int]r   r   r	   r   r
   r   r   r   r   r   r   r   r   
int | Noner   r!   r   r    )
__doc__
__future__r   typingr   _pytest.reportsr   r   r   r    r   r   <module>r'      s    B #  ) & ** * * * 
*0 !% % %  %  	% 
 %  %  %  %  %  
% r   