
    EhY"                        S SK Jr  S SKrSSKJr   " S S5      r S SKJrJrJ	r	J
r
Jr  S SKJr  S S	KJrJrJr  S SKrS
rS r\R,                  R.                  S 5       r\R2                  " S
S
S9S 5       r\R6                  S\4S j5       r\R6                  S\4S j5       r\R6                  S\4S j5       r\R6                  S\	4S j5       r\R6                  S\
4S j5       r \R6                  S\4S j5       r!\R6                  S\4S j5       r"\R6                  S\4S j5       r#\R6                  S\4S j5       r$\R6                  S\4S j5       r%\R6                  S 5       r&g! \ a    \r\r\r\r	\r
\r\r\r\rSr GNBf = f)    )AnyN   )SELENIUM_GRID_DEFAULTc                   6    \ rS rSrS rS\4S jrS\4S jrSr	g)MissingDashTesting	   c                     [        S5      e)NzQdash[testing] was not installed. Please install to use the dash testing fixtures.)	Exception)selfkwargss     fC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\dash/testing/plugin.py__init__MissingDashTesting.__init__
   s    ?
 	
    returnc                     U $ )%Implemented to satisfy type checking. )r   s    r   	__enter__MissingDashTesting.__enter__   s	     r   c                     g)r   Fr   )r   exc_typeexc_valexc_tbs       r   __exit__MissingDashTesting.__exit__   s     r   r   N)
__name__
__module____qualname____firstlineno__r   r   r   boolr   __static_attributes__r   r   r   r   r   	   s    
3 
T r   r   )ThreadedRunnerProcessRunnerRRunnerJuliaRunnerMultiProcessRunner)Browser)DashCompositeDashRCompositeDashJuliaCompositeTFc                 <   [         (       d  g U R                  SS5      nUR                  SSSSS9  UR                  SS	S
S9  UR                  SS[        SS9  UR                  SS	SS9  UR                  SSSSS9  UR                  SSSS9  UR                  SS	SS9  g )NDashzDash Integration Testsz--webdriver)ChromeFirefoxr.   z"Name of the selenium driver to use)choicesdefaulthelpz--remote
store_truez$instruct pytest to use selenium grid)actionr2   z--remote-urlstorez>set a different selenium grid remote url if other than default)r4   r1   r2   z
--headlessz%set this flag to run in headless modez--percy-assetsztests/assetsz3configure how Percy will discover your app's assetsz--nopercyfinalizestore_falsez3set this flag to control percy finalize at CI levelz--pausezGpause using pdb after opening the test app, so you can interact with it)
_installedgetgroup	addoptionr   )parserdashs     r   pytest_addoptionr<   8   s    :??6#;<DNN%1	   	NN<.T   	NN%M	   	NN\0W   	NNB	   	NNB   	NNV  r   c                 p    [         (       d  g SSKJn  [        U SS 5      nUc  U R                  nU" U5        g )Nr   )newhooksadd_hookspecs)r7   dash.testingr>   getattraddhooks)pluginmanagerr>   methods      r   pytest_addhooksrE   h   s5    : &]OT:F~''
8r   )tryfirsthookwrapperc              #     #    S v n[         (       d  g UR                  5       nUR                  S:X  al  UR                  (       aZ  [	        U S5      (       aH  U R
                  R                  5        H)  u  pE US;   a  UR                  U R                  5        M)  M+     g g g g ! [         a  n[        U5         S nAML  S nAff = f7f)Ncallfuncargs>   dashrdashjldash_brdash_duo)r7   
get_resultwhenfailedhasattrrJ   itemstake_snapshotnamer
   print)itemrI   outcomereprU   fixturees          r   pytest_runtest_makereportr\   v   s      G:



C xx6cjjWT:-F-F!]]002MDEE))$))4 F 3 .Gj
  as0   A2C5!B 
C 
C *B;5C;C  Cr   c               #   \   #    [        5        n U v   SSS5        g! , (       d  f       g= f7f)z*Start a local dash server in a new thread.N)r#   starters    r   dash_thread_serverr`      s      
	W 
		   ,	,
),c               #   \   #    [        5        n U v   SSS5        g! , (       d  f       g= f7f)z=Start a Dash server with subprocess.Popen and waitress-serve.N)r$   r^   s    r   dash_process_serverrc      s      
G 
ra   c               #   \   #    [        5        n U v   S S S 5        g ! , (       d  f       g = f7fN)r'   r^   s    r   dash_multi_process_serverrf      s     		 
		ra   c               #   \   #    [        5        n U v   S S S 5        g ! , (       d  f       g = f7fre   )r%   r^   s    r   dashr_serverrh      s     	g 
ra   c               #   \   #    [        5        n U v   S S S 5        g ! , (       d  f       g = f7fre   )r&   r^   s    r   dashjl_serverrj      s     	' 
ra   c              #   >  #    [        U R                  R                  S5      U R                  R                  S5      U R                  R                  S5      U R                  R                  S5      U R                  R                  R	                  5       UR                  S5      R                  U R                  R                  S5      U R                  R                  S5      U R                  R                  S5      S	9	 nUv   S S S 5        g ! , (       d  f       g = f7f)
N	webdriverremote
remote_urlheadlessdownloadpercy_assetsnopercyfinalizepause)	browserrm   rn   ro   optionsdownload_pathpercy_assets_rootpercy_finalizers   )r(   config	getoptionhookpytest_setup_optionsmkdirstrpath)requesttmpdirrt   s      r   rM   rM      s     	((5~~''1>>++L9))*5##88:ll:.66!..22>B~~//0ABnn&&w/

 


 

 

s   C<D>D	D
DDc              #   @  #    [        UU R                  R                  S5      U R                  R                  S5      U R                  R                  S5      U R                  R                  S5      U R                  R                  R	                  5       UR                  S5      R                  U R                  R                  S5      U R                  R                  S5      U R                  R                  S5      S	9
 nUv   S S S 5        g ! , (       d  f       g = f7f
Nrl   rm   rn   ro   rp   rq   rr   rs   )
serverrt   rm   rn   ro   ru   rv   rw   rx   rs   r)   ry   rz   r{   r|   r}   r~   )r   r`   r   dcs       r   rN   rN      s     	!((5~~''1>>++L9))*5##88:ll:.66!..22>B~~//0ABnn&&w/
 

 
 
   C=D?D	D
DDc              #   @  #    [        UU R                  R                  S5      U R                  R                  S5      U R                  R                  S5      U R                  R                  S5      U R                  R                  R	                  5       UR                  S5      R                  U R                  R                  S5      U R                  R                  S5      U R                  R                  S5      S	9
 nUv   S S S 5        g ! , (       d  f       g = f7fr   r   )r   rf   r   r   s       r   dash_duo_mpr      s     	(((5~~''1>>++L9))*5##88:ll:.66!..22>B~~//0ABnn&&w/
 

 
 
r   c              #   @  #    [        UU R                  R                  S5      U R                  R                  S5      U R                  R                  S5      U R                  R                  S5      U R                  R                  R	                  5       UR                  S5      R                  U R                  R                  S5      U R                  R                  S5      U R                  R                  S5      S	9
 nUv   S S S 5        g ! , (       d  f       g = f7fr   )r*   ry   rz   r{   r|   r}   r~   )r   rh   r   r   s       r   rK   rK      s     	((5~~''1>>++L9))*5##88:ll:.66!..22>B~~//0ABnn&&w/
 

 
 
r   c              #   @  #    [        UU R                  R                  S5      U R                  R                  S5      U R                  R                  S5      U R                  R                  S5      U R                  R                  R	                  5       UR                  S5      R                  U R                  R                  S5      U R                  R                  S5      U R                  R                  S5      S	9
 nUv   S S S 5        g ! , (       d  f       g = f7fr   )r+   ry   rz   r{   r|   r}   r~   )r   rj   r   r   s       r   rL   rL      s     	((5~~''1>>++L9))*5##88:ll:.66!..22>B~~//0ABnn&&w/
 

 
 
r   c                      SSK Jn   U " 5       $ )Nr   DiskcacheManager)dash.background_callbackr   r   s    r   diskcache_managerr     s     r   )'typingr   pytestconstsr   r    dash.testing.application_runnersr#   r$   r%   r&   r'   dash.testing.browserr(   dash.testing.compositer)   r*   r+   dash_testing_stubr7   ImportErrorr<   markrF   rE   hookimplr\   rZ   r`   rc   rf   rh   rj   rM   rN   r   rK   rL   r   r   r   r   <module>r      s     ) $  -XX J-` 
 
 $D1 2, N   ]   #5  
 g  
 {  
    ]    }    N    .@     q  'N&M+ G$K G&M'N+Js   $E% %FF