o
    Ú­j¾  ã                   @   sÆ   d dl mZ d dl mZ d dl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	ed
dfdd„Zejdd�de
e ded
ee fdd„ƒZejdd�ded
eeeef  fdd„ƒZdS )é    )ÚOptional)ÚUnionN)ÚConfig)ÚExitCode)ÚParser)Ú
FixtureDef)Ú
SubRequestÚparserÚreturnc                 C   s    |   d¡}|jddddd� d S )NÚdebugconfigz--setupplanz--setup-planÚ
store_truezIShow what fixtures and tests would be executed but don't execute anything)ÚactionÚhelp)ÚgetgroupÚ	addoption)r	   Úgroup© r   úN/var/www/html/CropPilot/venv/lib/python3.10/site-packages/_pytest/setupplan.pyÚpytest_addoption   s   

ür   T)ÚtryfirstÚ
fixturedefÚrequestc                 C   s*   |j jjr|  |¡}d |d f| _| jS d S )N)ÚconfigÚoptionÚ	setupplanÚ	cache_keyÚcached_result)r   r   Úmy_cache_keyr   r   r   Úpytest_fixture_setup   s
   

r   r   c                 C   s   | j jrd| j _d| j _d S )NT)r   r   Ú	setuponlyÚ	setupshow)r   r   r   r   Úpytest_cmdline_main#   s   r!   )Útypingr   r   ÚpytestÚ_pytest.configr   r   Ú_pytest.config.argparsingr   Ú_pytest.fixturesr   r   r   ÚhookimplÚobjectr   Úintr!   r   r   r   r   Ú<module>   s&    
ÿÿþ
$