U
    42i                     @  s   d dl mZ d dlmZ d dlmZ d dlmZ d dlmZ d dlm	Z	 d dl
Z
dd	d
ddZe
jddddddddZe
jdddddddZdS )    )annotations)Config)ExitCode)Parser)
FixtureDef)
SubRequestNr   None)parserreturnc                 C  s    |  d}|jddddd d S )NZdebugconfigz--setupplanz--setup-plan
store_truezIShow what fixtures and tests would be executed but don't execute anything)actionhelp)ZgetgroupZ	addoption)r	   group r   5/tmp/pip-unpacked-wheel-7n2p7kht/_pytest/setupplan.pypytest_addoption   s    
r   T)ZtryfirstzFixtureDef[object]r   zobject | None)
fixturedefrequestr
   c                 C  s*   |j jjr&| |}d |d f| _| jS d S )N)configoption	setupplan	cache_keyZcached_result)r   r   Zmy_cache_keyr   r   r   pytest_fixture_setup   s
    

r   r   zint | ExitCode | None)r   r
   c                 C  s   | j jrd| j _d| j _d S )NT)r   r   Z	setuponlyZ	setupshow)r   r   r   r   pytest_cmdline_main"   s    r   )
__future__r   Z_pytest.configr   r   Z_pytest.config.argparsingr   Z_pytest.fixturesr   r   Zpytestr   Zhookimplr   r   r   r   r   r   <module>   s   

