ó
    EñimZ  ã                  ó  • S r SSKJr  SSKJr  SSKJr  SSKrSSKrSSKrSSK	r	SSK
Jr  SSKrSSKJr  SS	K
Jr  SS
K
Jr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJ r   SSKJ!r!  SSK"J#r#  SSK$J%r%  SSK$J&r&  SSK'J(r(  Sr)Sr*\\RV                   " S S5      5       5       r, " S S5      r- " S S 5      r. " S! S"5      r/ " S# S$5      r0S-S% jr1S.S& jr2\" S'S(9S/S) j5       r3\ S0S* j5       r4S1S+ jr5S2S, jr6g)3z%Implementation of the cache provider.é    )Úannotations)Ú	Generator)ÚIterableN)ÚPath)Úfinalé   )Úresolve_from_str)Úrm_rf)ÚCollectReport)Únodes)ÚTerminalWriter)ÚConfig)ÚExitCode)Úhookimpl)ÚParser)Úcheck_ispytest)Úfixture)ÚFixtureRequest)ÚSession)Ú	Directory)ÚFile)Ú
TestReporta.  # pytest cache directory #

This directory contains data from the pytest's cache plugin,
which provides the `--lf` and `--ff` options, as well as the `cache` fixture.

**Do not** commit this to version control.

See [the docs](https://docs.pytest.org/en/stable/how-to/cache.html) for more information.
s¿   Signature: 8a477f597d28d172789f06886806bc55
# This file is a cache directory tag created by pytest.
# For information about cache directory tags, see:
#	https://bford.info/cachedir/spec.html
c                  ó4  • \ rS rSr% Sr\R                  " SS9rS\S'   \R                  " SS9r	S\S'   S	r
S
rSS.       SS jjr\SS.SS jj5       r\SSS jj5       r\SS.SS jj5       rSS.SS jjrSS jrS S jrS!S jrS"S jrS#S jrS$S jrSrg)%ÚCacheé7   z Instance of the `cache` fixture.F)Úreprr   Ú	_cachedirr   Ú_configÚdÚv©Ú	_ispytestc               ó2   • [        U5        Xl        X l        g ©N)r   r   r   )ÚselfÚcachedirÚconfigr"   s       ÚR/home/mande/repo/quber/.venv/lib/python3.13/site-packages/_pytest/cacheprovider.pyÚ__init__ÚCache.__init__E   s   € ô 	�yÔ!Ø!ŒØ�ó    c               ó¼   • [        U5        U R                  USS9nUR                  S5      (       a%  UR                  5       (       a  U R	                  USS9  U " X1SS9$ )z8Create the Cache instance for a Config.

:meta private:
Tr!   Ú
cacheclear)r   Úcache_dir_from_configÚ	getoptionÚis_dirÚclear_cache)Úclsr'   r"   r&   s       r(   Ú
for_configÚCache.for_configL   s[   € ô 	�yÔ!Ø×,Ñ,¨V¸tÐ,ÐDˆØ×Ñ˜L×)Ñ)¨h¯o©o×.?Ñ.?Ø�O‰O˜H°ˆOÑ5Ù�8¨tÑ4Ð4r+   c                ó¤   • [        U5        U R                  U R                  4 H)  nX-  nUR                  5       (       d  M  [	        U5        M+     g)zVClear the sub-directories used to hold cached directories and values.

:meta private:
N)r   Ú_CACHE_PREFIX_DIRSÚ_CACHE_PREFIX_VALUESr0   r
   )r2   r&   r"   Úprefixr   s        r(   r1   ÚCache.clear_cacheX   sB   € ô 	�yÔ!Ø×-Ñ-¨s×/GÑ/GÓHˆFØÑ!ˆAØ�x‰x�z‹zÜ�a–ò Ir+   c               ób   • [        U5        [        U R                  S5      U R                  5      $ )zBGet the path to the cache directory for a Config.

:meta private:
Ú	cache_dir)r   r	   ÚgetiniÚrootpath)r'   r"   s     r(   r.   ÚCache.cache_dir_from_configd   s&   € ô 	�yÔ!Ü §¡¨kÓ :¸F¿O¹OÓLÐLr+   c          	     ó¶   • [        U5        SSKnSSKJn  UR	                  U" U(       a  UR
                  " S0 UD6OU5      U R                  R                  SS9  g)z'Issue a cache warning.

:meta private:
r   N)ÚPytestCacheWarningé   )Ú
stacklevel© )r   ÚwarningsÚ_pytest.warning_typesr@   ÚwarnÚformatr   Úhook)r%   Úfmtr"   ÚargsrD   r@   s         r(   rF   Ú
Cache.warnm   sK   € ô
 	�yÔ!Ûå<à�‰Ù¶T˜sŸzšzÑ1¨DÒ1¸sÓCØ�L‰L×ÑØð 	ò 	
r+   c                óD   • U R                  5         UR                  SSS9  g )NT)Úexist_okÚparents)Ú&_ensure_cache_dir_and_supporting_filesÚmkdir)r%   Úpaths     r(   Ú_mkdirÚCache._mkdir}   s   € Ø×3Ñ3Ô5Ø�
‰
˜D¨$ˆ
Ò/r+   c                óÒ   • [        U5      n[        UR                  5      S:”  a  [        S5      eU R                  R                  U R                  U5      nU R                  U5        U$ )a›  Return a directory path object with the given name.

If the directory does not yet exist, it will be created. You can use
it to manage files to e.g. store/retrieve database dumps across test
sessions.

.. versionadded:: 7.0

:param name:
    Must be a string not containing a ``/`` separator.
    Make sure the name contains your plugin or application
    identifiers to prevent clashes with other cache users.
r   z.name is not allowed to contain path separators)r   ÚlenÚpartsÚ
ValueErrorr   Újoinpathr6   rR   )r%   ÚnamerQ   Úress       r(   rP   ÚCache.mkdir�   sV   € ô �D‹zˆÜˆt�z‰z‹?˜QÓÜÐMÓNÐNØ�n‰n×%Ñ% d×&=Ñ&=¸tÓDˆØ�‰�CÔØˆ
r+   c                ó`   • U R                   R                  U R                  [        U5      5      $ r$   )r   rX   r7   r   )r%   Úkeys     r(   Ú_getvaluepathÚCache._getvaluepath–   s#   € Ø�~‰~×&Ñ& t×'@Ñ'@Ä$ÀsÃ)ÓLÐLr+   c                óØ   • U R                  U5      n UR                  SSS9 n[        R                  " U5      sSSS5        $ ! , (       d  f       g= f! [        [
        4 a    Us $ f = f)a\  Return the cached value for the given key.

If no value was yet cached or the value cannot be read, the specified
default is returned.

:param key:
    Must be a ``/`` separated value. Usually the first
    name is the name of your plugin or your application.
:param default:
    The value to return in case of a cache-miss or invalid cache value.
ÚrúUTF-8©ÚencodingN)r^   ÚopenÚjsonÚloadrW   ÚOSError)r%   r]   ÚdefaultrQ   Úfs        r(   ÚgetÚ	Cache.get™   sZ   € ð ×!Ñ! #Ó&ˆð	Ø—‘˜3¨�Ñ1°QÜ—y’y “|÷ 2×1×1ûäœGÐ$ó 	ØŠNð	ús-   “A £A¹	A Á
AÁA ÁA ÁA)Á(A)c                óº  • U R                  U5      n U R                  UR                  5        [
        R                  " USSS9n UR                  S	S
S9nU   UR                  U5        SSS5        g! [         a   nU R	                  SU SU 3SS9   SnAgSnAff = f! , (       d  f       g= f! [         a   nU R	                  SU SU 3SS9   SnAgSnAff = f)a  Save value for the given key.

:param key:
    Must be a ``/`` separated value. Usually the first
    name is the name of your plugin or your application.
:param value:
    Must be of any combination of basic python types,
    including nested types like lists of dictionaries.
zcould not create cache path z: Tr!   NFé   )Úensure_asciiÚindentÚwrb   rc   zcache could not write path )	r^   rR   Úparentrh   rF   rf   Údumpsre   Úwrite)r%   r]   ÚvaluerQ   ÚexcÚdatarj   s          r(   ÚsetÚ	Cache.set¬   sã   € ð ×!Ñ! #Ó&ˆð	Ø�K‰K˜Ÿ™Ô$ô �zŠz˜%¨e¸AÑ>ˆð		Ø—	‘	˜#¨�	Ð0ˆAò Ø—‘˜”÷ �øô ó 	Ø�I‰IØ.¨t¨f°B°s°eÐ<Øð ñ ô ûð	ú÷ •ûô ó 	Ø�I‰IØ-¨d¨V°2°c°UÐ;Øð ö ûð	ús;   “A2 ÁB0 ÁBÁ2
BÁ<BÂBÂ
B-Â0
CÂ:CÃCc                ó<  • U R                   R                  5       (       a  gU R                   R                  R                  SSS9  [        R
                  " SU R                   R                  S9 n[        U5      n[        R                  " S5      n[        R                  " U5        UR                  SU-
  5        [        UR                  S5      S	S
S9 nUR                  [        5        SSS5        [        UR                  S5      S	S
S9 nUR                  S5        SSS5        [        UR                  S5      S5       nUR                  [        5        SSS5         UR                  U R                   5        UR                  5         SSS5        g! , (       d  f       N°= f! , (       d  f       N�= f! , (       d  f       Ne= f! [          a9  nUR"                  ["        R$                  ["        R&                  4;  a  e  SnANzSnAff = f! , (       d  f       g= f)z.Create the cache dir and its supporting files.NT)rN   rM   zpytest-cache-files-)r8   Údiré   iÿ  z	README.mdÚxrb   rc   z
.gitignorez%# Created by pytest automatically.
*
zCACHEDIR.TAGÚxb)r   r0   rr   rP   ÚtempfileÚTemporaryDirectoryr   ÚosÚumaskÚchmodre   rX   rt   ÚREADME_CONTENTÚCACHEDIR_TAG_CONTENTÚrenamerh   ÚerrnoÚ	ENOTEMPTYÚEEXIST)r%   ÚnewpathrQ   r‚   rj   Úes         r(   rO   Ú,Cache._ensure_cache_dir_and_supporting_filesË   sˆ  € à�>‰>× Ñ ×"Ñ"Øà�‰×Ñ×#Ñ#¨D¸4Ð#Ñ@Ü×(Ò(Ø(Ø—‘×%Ñ%ò
ð Ü˜“=ˆDô —H’H˜U“OˆEÜ�HŠH�UŒOØ�J‰J�u˜u‘}Ô%ä�d—m‘m KÓ0°#ÀÒHÈAØ—‘œÔ'÷ Iä�d—m‘m LÓ1°3ÀÒIÈQØ—‘ÐAÔB÷ Jä�d—m‘m NÓ3°TÔ:¸aØ—‘Ô,Ô-÷ ;ðØ—‘˜DŸN™NÔ+ð" —
‘
”÷K
ð 
÷ IÕHúçIÕIúç:Õ:ûô
 ó ð —7‘7¤5§?¡?´E·L±LÐ"AÓAØô Bûðú÷+
õ 
ús   Á.A&HÃFÃ*"HÄF%Ä#HÅF6ÅHÅ GÅ;HÆ
F"	ÆHÆ%
F3	Æ/HÆ6
G	Ç HÇ
H
Ç/HÈ HÈH
È
HÈ
H)r   r   N)r&   r   r'   r   r"   ÚboolÚreturnÚNone)r'   r   r"   r�   rŽ   r   )F)r&   r   r"   r�   rŽ   r�   )r'   r   r"   r�   rŽ   r   )rI   Ústrr"   r�   rJ   ÚobjectrŽ   r�   )rQ   r   rŽ   r�   )rY   r�   rŽ   r   )r]   r�   rŽ   r   )r]   r�   )r]   r�   ru   r‘   rŽ   r�   ©rŽ   r�   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚdataclassesÚfieldr   Ú__annotations__r   r6   r7   r)   Úclassmethodr3   r1   Ústaticmethodr.   rF   rR   rP   r^   rk   rx   rO   Ú__static_attributes__rC   r+   r(   r   r   7   sÚ   ‡ ñ +à!×'Ò'¨UÑ3€IˆtÓ3Ø!×'Ò'¨UÑ3€GˆVÓ3ð Ðð Ðð DIñØðØ&,ðØ<@ðà	õð Ø=Bö 	5ó ð	5ð õ	ó ð	ð ØCHö Mó ðMð 38÷ 
ô 0ôô*Môô&÷>+r+   r   c                  óB   • \ rS rSrSS jr\" SS9    S	S j5       rSrg)
ÚLFPluginCollWrapperéù   c                ó   • Xl         SU l        g )NF)ÚlfpluginÚ_collected_at_least_one_failure©r%   r¢   s     r(   r)   ÚLFPluginCollWrapper.__init__ú   s   € Ø ŒØ/4ˆÕ,r+   T)Úwrapperc              #  ó^  ^^#   • S v •n[        U[        [        -  5      (       a:  U R                  R                  mSU4S jjn[        UR                  USS9Ul        U$ [        U[        5      (       Ga1  UR                  U R                  R                  ;   Ga  UR                  nU R                  R                  mU R                  (       df  [        U4S jU 5       5      (       d  U$ U R                  R                  R                  R                  [        U R                  5      S5        SU l
        UR                   nU Vs/ s HV  nUR"                  T;   dA  UR%                  UR                  5      (       d!  [        U[&        R(                  5      (       d  MT  UPMX     snUS S & U$ s  snf 7f)Nc                ó"   >• U R                   T;   $ r$   )rQ   )ÚnodeÚlf_pathss    €r(   Úsort_keyÚ@LFPluginCollWrapper.pytest_make_collect_report.<locals>.sort_key  s   ø€ Ø—y‘y HÑ,Ð,r+   T©r]   Úreversec              3  ó@   >#   • U  H  oR                   T;   v •  M     g 7fr$   ©Únodeid)Ú.0r}   Ú
lastfaileds     €r(   Ú	<genexpr>ÚALFPluginCollWrapper.pytest_make_collect_report.<locals>.<genexpr>  s   øé € ÐFºv¸!Ÿx™x¨:Ö5ºvùs   ƒzlfplugin-collskip)r©   znodes.Item | nodes.CollectorrŽ   r�   )Ú
isinstancer   r   r¢   Ú_last_failed_pathsÚsortedÚresultr   rQ   r³   r£   Úanyr'   ÚpluginmanagerÚregisterÚLFPluginCollSkipfilesÚsessionr±   Ú
isinitpathr   Ú	Collector)	r%   Ú	collectorrZ   r«   r¹   r¾   r}   r³   rª   s	          @@r(   Úpytest_make_collect_reportÚ.LFPluginCollWrapper.pytest_make_collect_reportþ   sT  ùé € ò ˆÜ�i¤¬9Ñ!4×5Ñ5à—}‘}×7Ñ7ˆH÷-ô  Ø—
‘
ØØñˆCŒJð> ˆ
ô3 ˜	¤4×(Ò(Ø�~‰~ §¡×!AÑ!AÔAØŸ™�Ø!Ÿ]™]×5Ñ5�
ð ×;×;ÜÔF¹vÓF×FÑFØ"˜
Ø—M‘M×(Ñ(×6Ñ6×?Ñ?Ü-¨d¯m©mÓ<Ð>Qôð <@�DÔ8à#×+Ñ+�ñ $óâ#˜Ø—x‘x :Ó-à×)Ñ)¨!¯&©&×1Ñ1ä! !¤U§_¡_×5÷ Ù#ñ�‘q�	ð ˆ
ùòùs   „D?F-ÅAF(ÆF(Æ F-)r£   r¢   N©r¢   ÚLFPluginrŽ   r�   )rÁ   únodes.CollectorrŽ   z-Generator[None, CollectReport, CollectReport]©r“   r”   r•   r–   r)   r   rÂ   r�   rC   r+   r(   rŸ   rŸ   ù   s0   † ô5ñ �dÑð+Ø(ð+à	6ó+ó ó+r+   rŸ   c                  ó:   • \ rS rSrSS jr\    SS j5       rSrg)r½   i-  c                ó   • Xl         g r$   ©r¢   r¤   s     r(   r)   ÚLFPluginCollSkipfiles.__init__.  s   € Ø �r+   c                óà   • [        U[        5      (       aY  UR                  U R                  R                  ;  a5  U R                  =R
                  S-  sl        [        UR                  SS / S9$ g )Nr   Úpassed)Úlongreprr¹   )r¶   r   rQ   r¢   r·   Ú_skipped_filesr   r±   )r%   rÁ   s     r(   rÂ   Ú0LFPluginCollSkipfiles.pytest_make_collect_report1  s]   € ô �i¤×&Ñ&Ø�~‰~ T§]¡]×%EÑ%EÓEØ—‘×,Ò,°Ñ1Õ,ä$Ø×$Ñ$ h¸Àbñð ð r+   rÊ   NrÄ   )rÁ   rÆ   rŽ   zCollectReport | NonerÇ   rC   r+   r(   r½   r½   -  s+   † ô!ð ð
Ø(ð
à	ó
ó ó
r+   r½   c                  ó~   • \ rS rSrSrSS jrSS jrSS jrSS jrSS jr	\
" SSS	9      SS
 j5       rSS jrSrg)rÅ   i?  z;Plugin which implements the --lf (run last-failing) option.c                ó€  ^• TU l         Sn[        U4S jU 5       5      U l        TR                  (       d   eTR                  R	                  S0 5      U l        S U l        S U l        SU l        TR                  S5      (       a;  U R                  5       U l        TR                  R                  [        U 5      S5        g g )N)ÚlfÚfailedfirstc              3  óF   >#   • U  H  nTR                  U5      v •  M     g 7fr$   )r/   )r²   r]   r'   s     €r(   r´   Ú$LFPlugin.__init__.<locals>.<genexpr>E  s   øé € ÐGº;°C˜&×*Ñ*¨3×/Ð/º;ùs   ƒ!úcache/lastfailedr   rÓ   zlfplugin-collwrapper)r'   rº   ÚactiveÚcacherk   r³   Ú_previously_failed_countÚ_report_statusrÏ   r/   Úget_last_failed_pathsr·   r»   r¼   rŸ   )r%   r'   Úactive_keyss    ` r(   r)   ÚLFPlugin.__init__B  s¥   ø€ ØˆŒØ)ˆÜÔG¹;ÓGÓGˆŒØ�|�|Ðˆ|Ø+1¯<©<×+;Ñ+;Ð<NÐPRÓ+SˆŒØ48ˆÔ%Ø*.ˆÔØˆÔà×Ñ˜D×!Ñ!Ø&*×&@Ñ&@Ó&BˆDÔ#Ø× Ñ ×)Ñ)Ü# DÓ)Ð+Aõð "r+   c                óH  • U R                   R                  n[        5       nU R                   HE  nXR	                  S5      S   -  nUR                  U5        UR                  UR                  5        MG     U Vs1 s H  oUR                  5       (       d  M  UiM     sn$ s  snf )zOReturn a set with all Paths of the previously failed nodeids and
their parents.z::r   )	r'   r=   rx   r³   ÚsplitÚaddÚupdaterN   Úexists)r%   r=   r¹   r±   rQ   r}   s         r(   rÜ   ÚLFPlugin.get_last_failed_pathsR  sz   € ð —;‘;×'Ñ'ˆÜ“ˆØ—o”oˆFØŸl™l¨4Ó0°Ñ3Ñ3ˆDØ�J‰J�tÔØ�M‰M˜$Ÿ,™,Ö'ñ &ñ "Ó0š6�a§X¡X§Z—™6Ñ0Ð0ùÒ0s   Á:BÂBc                ó€   • U R                   (       a-  U R                  R                  5       S:¼  a  SU R                   3$ g )Nr   zrun-last-failure: )rØ   r'   Úget_verbosityrÛ   )r%   s    r(   Úpytest_report_collectionfinishÚ'LFPlugin.pytest_report_collectionfinish]  s4   € Ø�;�;˜4Ÿ;™;×4Ñ4Ó6¸!Ó;Ø'¨×(;Ñ(;Ð'<Ð=Ð=Ør+   c                ó  • UR                   S:X  a  UR                  (       d  UR                  (       a'  U R                  R	                  UR
                  S 5        g UR                  (       a  SU R                  UR
                  '   g g )NÚcallT)ÚwhenrÍ   Úskippedr³   Úpopr±   Úfailed)r%   Úreports     r(   Úpytest_runtest_logreportÚ!LFPlugin.pytest_runtest_logreportb  sP   € Ø�K‰K˜6Ó! f§m§m¸¿¿Ø�O‰O×Ñ §¡¨tÕ4Ø�]�]Ø-1ˆD�O‰O˜FŸM™MÒ*ð r+   c                ó<  • UR                   S;   nU(       am  UR                  U R                  ;   aR  U R                  R                  UR                  5        U R                  R	                  S UR
                   5       5        g g SU R                  UR                  '   g )N)rÍ   rì   c              3  ó<   #   • U  H  oR                   S 4v •  M     g7f)TNr°   ©r²   Úitems     r(   r´   Ú0LFPlugin.pytest_collectreport.<locals>.<genexpr>m  s   é € Ð&UÂ}¸t¯©°TÕ':Â}ùs   ‚T)Úoutcomer±   r³   rí   râ   r¹   )r%   rï   rÍ   s      r(   Úpytest_collectreportÚLFPlugin.pytest_collectreporth  so   € Ø—‘Ð#8Ñ8ˆÞØ�}‰} §¡Ó/Ø—‘×#Ñ# F§M¡MÔ2Ø—‘×&Ñ&Ñ&UÀvÇ}Â}Ó&UÕUð 0ð .2ˆD�O‰O˜FŸM™MÒ*r+   T©r¦   Útryfirstc              #  ó
  #   • S v •nU R                   (       d  U$ U R                  (       Gab  / n/ nU HA  nUR                  U R                  ;   a  UR                  U5        M0  UR                  U5        MC     [	        U5      U l        U(       d  [	        U R                  5       S3U l        O–U R                  R                  S5      (       a  XBS S & UR                  R                  US9  OXE-   US S & U R
                  S:X  a  SOSnU R                  R                  S5      (       a  SOS	nS
U R
                   SU U 3U l        U R                  S:”  a:  U R                  S:X  a  SOSn	U =R                  SU R                   SU	 S3-  sl        U$ SU l        U R                  R                  S5      S:X  a8  U =R                  S-  sl        UR                  R                  US S  S9  / US S & U$ U =R                  S-  sl        U$ 7f)Nz% known failures not in selected testsrÓ   )Úitemsr   ÚfailureÚfailuresrÔ   z firstÚ zrerun previous Ú r   ÚfileÚfilesz
 (skipped Ú)zno previously failed tests, Úlast_failed_no_failuresÚnonezdeselecting all items.znot deselecting items.)rØ   r³   r±   ÚappendrU   rÚ   rÛ   r'   r/   rH   Úpytest_deselectedrÏ   )
r%   r'   rý   rZ   Úpreviously_failedÚpreviously_passedrõ   ÚnounÚsuffixÚ
files_nouns
             r(   Úpytest_collection_modifyitemsÚ&LFPlugin.pytest_collection_modifyitemsq  sñ  é € ò ˆà�{�{ØˆJà�?�?ˆ?Ø "ÐØ "ÐÛ�Ø—;‘; $§/¡/Ó1Ø%×,Ñ,¨TÖ2à%×,Ñ,¨TÖ2ñ	 ô
 -0Ð0AÓ,BˆDÔ)æ$ô ˜4Ÿ?™?Ó+Ð,Ð,QÐRð Õ#ð —;‘;×(Ñ(¨×.Ñ.Ø0™!�HØ—K‘K×1Ñ1Ð8IÐ1ÒJà0ÑD�E™!�Hà$(×$AÑ$AÀQÓ$F‘yÈJ�Ø%)§[¡[×%:Ñ%:¸=×%IÑ%I™Èr�à% d×&CÑ&CÐ%DÀAÀdÀVÈFÈ8ÐTð Ô#ð ×"Ñ" QÓ&Ø'+×':Ñ':¸aÓ'?™VÀW�
Ø×#Ò#¨°D×4GÑ4GÐ3HÈÈ*ÈÐUVÐ'WÑWÕ#ð ˆ
ð #AˆDÔØ�{‰{×$Ñ$Ð%>Ó?À6ÓIØ×#Ò#Ð'?Ñ?Õ#Ø—‘×-Ñ-°E¹!°HÐ-Ñ=Ø�‘a�ð ˆ
ð ×#Ò#Ð'?Ñ?Õ#àˆ
ùs   ‚HHc                ó.  • U R                   nUR                  S5      (       d  [        US5      (       a  g UR                  c   eUR                  R	                  S0 5      nX0R
                  :w  a'  UR                  R                  SU R
                  5        g g )NÚ	cacheshowÚworkerinputr×   )r'   r/   ÚhasattrrÙ   rk   r³   rx   )r%   r¾   r'   Úsaved_lastfaileds       r(   Úpytest_sessionfinishÚLFPlugin.pytest_sessionfinish¥  s{   € Ø—‘ˆØ×Ñ˜K×(Ñ(¬G°F¸M×,JÑ,JØà�|‰|Ñ'Ð'Ð'Ø!Ÿ<™<×+Ñ+Ð,>ÀÓCÐØŸ™Ó.Ø�L‰L×ÑÐ/°·±ÕAð /r+   )r·   rÚ   rÛ   rÏ   rØ   r'   r³   N©r'   r   rŽ   r�   )rŽ   z	set[Path])rŽ   ú
str | None)rï   r   rŽ   r�   )rï   r   rŽ   r�   )r'   r   rý   úlist[nodes.Item]rŽ   úGenerator[None])r¾   r   rŽ   r�   )r“   r”   r•   r–   r—   r)   rÜ   rç   rð   rø   r   r  r  r�   rC   r+   r(   rÅ   rÅ   ?  sX   † ÙEôô 	1ôô
2ô2ñ �d TÑ*ð1Øð1Ø%5ð1à	ó1ó +ð1÷fBr+   rÅ   c                  óT   • \ rS rSrSrSS jr\" SSS9SS j5       rSS jrSS jr	S	r
g
)ÚNFPlugini°  z8Plugin which implements the --nf (run new-first) option.c                ó¸   • Xl         UR                  R                  U l        UR                  c   e[        UR                  R                  S/ 5      5      U l        g )Núcache/nodeids)r'   ÚoptionÚnewfirstrØ   rÙ   rx   rk   Úcached_nodeids©r%   r'   s     r(   r)   ÚNFPlugin.__init__³  sF   € ØŒØ—m‘m×,Ñ,ˆŒØ�|‰|Ñ'Ð'Ð'Ü! &§,¡,×"2Ñ"2°?ÀBÓ"GÓHˆÕr+   Trú   c              #  óÄ  #   • S v •nU R                   (       a¤  0 n0 nU H;  nUR                  U R                  ;  a  XSUR                  '   M-  XTUR                  '   M=     U R                  UR	                  5       5      U R                  UR	                  5       5      -   US S & U R                  R                  U5        U$ U R                  R                  S U 5       5        U$ 7f)Nc              3  ó8   #   • U  H  oR                   v •  M     g 7fr$   r°   rô   s     r(   r´   Ú9NFPlugin.pytest_collection_modifyitems.<locals>.<genexpr>Ë  s   é € Ð&Eºu°t§{¦{ºuùs   ‚)rØ   r±   r!  Ú_get_increasing_orderÚvaluesrâ   )r%   rý   rZ   Ú	new_itemsÚother_itemsrõ   s         r(   r  Ú&NFPlugin.pytest_collection_modifyitems¹  sÌ   é € âˆà�;�;Ø/1ˆIØ13ˆKÛ�Ø—;‘; d×&9Ñ&9Ó9Ø-1˜dŸk™kÓ*à/3 §¡Ó,ñ	 ð ×1Ñ1Ø× Ñ Ó"óà×*Ñ*¨;×+=Ñ+=Ó+?Ó@ñAˆE‘!ˆHð ×Ñ×&Ñ& yÔ1ð ˆ
ð ×Ñ×&Ñ&Ñ&E¹uÓ&EÔEàˆ
ùs   ‚CC c                ó   • [        US SS9$ )Nc                óJ   • U R                   R                  5       R                  $ r$   )rQ   ÚstatÚst_mtime)rõ   s    r(   Ú<lambda>Ú0NFPlugin._get_increasing_order.<locals>.<lambda>Ð  s   € ¨d¯i©i¯n©nÓ.>×.GÒ.Gr+   Tr­   )r¸   )r%   rý   s     r(   r'  ÚNFPlugin._get_increasing_orderÏ  s   € Ü�eÑ!GÐQUÑVÐVr+   c                ó  • U R                   nUR                  S5      (       d  [        US5      (       a  g UR                  S5      (       a  g UR                  c   eUR                  R	                  S[        U R                  5      5        g )Nr  r  Úcollectonlyr  )r'   r/   r  rÙ   rx   r¸   r!  r"  s     r(   r  ÚNFPlugin.pytest_sessionfinishÒ  sn   € Ø—‘ˆØ×Ñ˜K×(Ñ(¬G°F¸M×,JÑ,JØà×Ñ˜M×*Ñ*Øà�|‰|Ñ'Ð'Ð'Ø�‰×Ñ˜¬&°×1DÑ1DÓ*EÕFr+   )rØ   r!  r'   Nr  )rý   r  rŽ   r  )rý   zIterable[nodes.Item]rŽ   r  r’   )r“   r”   r•   r–   r—   r)   r   r  r'  r  r�   rC   r+   r(   r  r  °  s2   † ÙBôIñ �d TÑ*óó +ðô*W÷	Gr+   r  c           
     ó¼  • U R                  S5      nUR                  SSSSSS9  UR                  SS	SS
SS9  UR                  SSSSSS9  UR                  SSSSSS9  UR                  SSSSS9  SnS[        R                  ;   a1  [        R                  R                  [        R                  S   U5      nU R                  SUSS9  UR                  SSS S!S"S#S$S%9  g&)'zpAdd command-line options for cache functionality.

:param parser: Parser object to add command-line options to.
Úgeneralz--lfz--last-failedÚ
store_truerÓ   zHRerun only the tests that failed at the last run (or all if none failed))ÚactionÚdestÚhelpz--ffz--failed-firstrÔ   zyRun all tests, but run the last failures first. This may re-order tests and thus lead to repeated fixture setup/teardown.z--nfz--new-firstr   zORun tests from new files first, then the rest of the tests sorted by file mtimez--cache-showr  Ú?r  z_Show cache contents, don't perform collection or tests. Optional argument: glob (default: '*').)r9  Únargsr:  r;  z--cache-clearr-   z.Remove all cache contents at start of test runú.pytest_cacheÚTOX_ENV_DIRr;   zCache directory path)ri   r;  z--lfnfz--last-failed-no-failuresÚstorer  )Úallr  rA  a  With ``--lf``, determines whether to execute tests when there are no previously (known) failures or when no cached ``lastfailed`` data was found. ``all`` (the default) runs the full test suite again. ``none`` just emits a message about no known failures and exits successfully.)r9  r:  Úchoicesri   r;  N)ÚgetgroupÚ	addoptionr�   ÚenvironrQ   ÚjoinÚaddini)ÚparserÚgroupÚcache_dir_defaults      r(   Úpytest_addoptionrK  Þ  s-  € ð
 �O‰O˜IÓ&€EØ	‡O�OØØØØØWð ñ ð 
‡O�OØØØØð+ð ñ ð 
‡O�OØØØØðð ñ ð 
‡O�OØØØØð6ð ñ 	ð 
‡O�OØØØØ=ð	 ñ ð (ÐØœŸ
™
Ó"ÜŸG™GŸL™L¬¯©°MÑ)BÐDUÓVÐØ
‡M�M�+Ð'8Ð?U€MÑVØ	‡O�OØØ#ØØ&ØØðXð ò r+   c                ó–   • U R                   R                  (       a.  U R                   R                  (       d  SSKJn  U" U [        5      $ g )Nr   )Úwrap_session)r  r  r;  Ú_pytest.mainrM  )r'   rM  s     r(   Úpytest_cmdline_mainrO    s.   € Ø‡}�}×× v§}¡}×'9×'9Ý-á˜F¤IÓ.Ð.Ør+   T)rû   c                óÊ   • [         R                  U SS9U l        U R                  R	                  [        U 5      S5        U R                  R	                  [        U 5      S5        g)záConfigure cache system and register related plugins.

Creates the Cache instance and registers the last-failed (LFPlugin)
and new-first (NFPlugin) plugins with the plugin manager.

:param config: pytest configuration object.
Tr!   r¢   ÚnfpluginN)r   r3   rÙ   r»   r¼   rÅ   r  )r'   s    r(   Úpytest_configurerR  '  sQ   € ô ×#Ñ# F°dÐ#Ð;€F„LØ
×Ñ×!Ñ!¤(¨6Ó"2°JÔ?Ø
×Ñ×!Ñ!¤(¨6Ó"2°JÕ?r+   c                ó`   • U R                   R                  c   eU R                   R                  $ )aJ  Return a cache object that can persist state between testing sessions.

cache.get(key, default)
cache.set(key, value)

Keys must be ``/`` separated strings, where the first part is usually the
name of your plugin or application to avoid clashes with other cache users.

Values can be any object handled by the json stdlib module.
)r'   rÙ   )Úrequests    r(   rÙ   rÙ   5  s*   € ð �>‰>×ÑÑ+Ð+Ð+Ø�>‰>×ÑÐr+   c                ó  • U R                   R                  S:”  d  U R                  S5      S:w  aF  U R                  c   eU R                  R                  n UR                  U R                  5      nSU 3$ g! [         a    Un Nf = f)z6Display cachedir with --cache-show and if non-default.r   r;   r>  Nú
cachedir: )r  Úverboser<   rÙ   r   Úrelative_tor=   rW   )r'   r&   Údisplaypaths      r(   Úpytest_report_headerrZ  E  s„   € à‡}�}×Ñ˜qÓ  F§M¡M°+Ó$>À/Ó$QØ�|‰|Ñ'Ð'Ð'Ø—<‘<×)Ñ)ˆð	#Ø"×.Ñ.¨v¯©Ó?ˆKð ˜K˜=Ð)Ð)Øøô ó 	#Ø"ŠKð	#ús   ÁA7 Á7BÂBc                óà  • SSK Jn  U R                  c   e[        5       nUR	                  S[        U R                  R                  5      -   5        U R                  R                  R                  5       (       d  UR	                  S5        gU R                  R                  S   nUc  Sn[        5       nU R                  R                  nU[        R                  -  nUR                  SSU< 35        [        S UR                  U5       5       5       H—  n[        UR!                  U5      5      n	U R                  R#                  X•5      n
X¥L a  UR	                  U	 S	35        MR  UR	                  U	 S
35        U" U
5      R%                  5        H  nUR	                  SU-   5        M     M™     U[        R&                  -  nUR                  5       (       a˜  [        UR                  U5      5      nUR                  SSU< 35        U Hb  nUR)                  5       (       d  M  [        UR!                  U5      5      n	UR	                  U	 SUR+                  5       R,                   35        Md     g)aa  Display cache contents when --cache-show is used.

Shows cached values and directories matching the specified glob pattern
(default: '*'). Displays cache location, cached test results, and
any cached directories created by plugins.

:param config: pytest configuration object.
:param session: pytest session object.
:returns: Exit code (0 for success).
r   )ÚpformatrV  zcache is emptyÚ*Ú-zcache values for c              3  óR   #   • U  H  oR                  5       (       d  M  Uv •  M     g 7fr$   )Úis_file)r²   r}   s     r(   r´   Úcacheshow.<locals>.<genexpr>r  s   é € ÐEÒ%5 ¿¹¿Ÿ!™!Ò%5ùs   ‚'ž	'z- contains unreadable content, will be ignoredz
 contains:z  zcache directories for z is a file of length )Úpprintr\  rÙ   r   Úliner�   r   r0   r  r  r‘   r   r7   Úsepr¸   ÚrglobrX  rk   Ú
splitlinesr6   r`  r.  Úst_size)r'   r¾   r\  ÚtwÚglobÚdummyÚbasedirÚvdirÚvalpathr]   Úvalrc  ÚddirÚcontentsÚps                  r(   r  r  U  s÷  € õ à�<‰<Ñ#Ð#Ð#ä	Ó	€BØ‡G�GˆLœ3˜vŸ|™|×5Ñ5Ó6Ñ6Ô7Ø�<‰<×!Ñ!×(Ñ(×*Ñ*Ø
�‰Ð Ô!Øà�=‰=×"Ñ" 1Ñ%€DØ�|Øˆä‹H€EØ�l‰l×$Ñ$€GØ”U×/Ñ/Ñ/€DØ‡F�Fˆ3Ð# D¡8Ð,Ô-ÜÑE T§Z¡Z°Ô%5ÓEÖEˆÜ�'×%Ñ% dÓ+Ó,ˆØ�l‰l×Ñ˜sÓ*ˆØŠ<Ø�G‰G�s�eÐHÐIÖJà�G‰G�s�e˜:Ð&Ô'Ù ›×/Ñ/Ö1�Ø—‘˜˜t™Ö$ó 2ñ Fð ”U×-Ñ-Ñ-€DØ‡{�{‡}�}Ü˜$Ÿ*™* TÓ*Ó+ˆØ
�‰ˆsÐ,¨T©HÐ5Ô6ÛˆAð �y‰y�{‹{Ü˜!Ÿ-™-¨Ó0Ó1�Ø—‘˜3˜%Ð4°Q·V±V³X×5EÑ5EÐ4FÐGÖHñ ð r+   )rH  r   rŽ   r�   )r'   r   rŽ   zint | ExitCode | Noner  )rT  r   rŽ   r   )r'   r   rŽ   r  )r'   r   r¾   r   rŽ   Úint)7r—   Ú
__future__r   Úcollections.abcr   r   r˜   r‡   rf   r�   Úpathlibr   r   Útypingr   r	   r
   Úreportsr   Ú_pytestr   Ú_pytest._ior   Ú_pytest.configr   r   r   Ú_pytest.config.argparsingr   Ú_pytest.deprecatedr   Ú_pytest.fixturesr   r   rN  r   Ú_pytest.nodesr   r   Ú_pytest.reportsr   r„   r…   Ú	dataclassr   rŸ   r½   rÅ   r  rK  rO  rR  rÙ   rZ  r  rC   r+   r(   Ú<module>r�     s  ðá +õ #å %Ý $Û Û Û Û 	Ý Û Ý å %Ý Ý "Ý Ý &Ý !Ý #Ý #Ý ,Ý -Ý $Ý +Ý  Ý #Ý Ý &ð	€ðÐ ð Ø×Ñ÷}ð }ó ó ð}÷@1ñ 1÷hñ ÷$nBñ nB÷b+Gñ +Gô\>ôBñ 
�4Ñó
@ó ð
@ð 	ó ó 	ð ôõ 1r+   