o
    Uh                     @   s$   d dl Z dd Zdd Zdd ZdS )    Nc                 C   s   ddl m} || S )Nr   )Develop)pkginfo.developr   )dirnamer    r   n/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/pkginfo/tests/test_develop.py_make_develop   s   r   c                  C   s"   ddl m}  td}| d | d S )Nr   )_checkSample.)pkginfo.testsr   r   )r   developr   r   r   test_develop_ctor_w_path   s   r   c                  C   s   dd l } ddlm} | jdd}td}W d    n1 sw   Y  |jd ks+J |jd ks2J |jd ks9J t|dksAJ t	|d j
dsMJ |d j|u sVJ d S )	Nr   )UnknownMetadataVersionT)recordz	/nonesuch   zNo PKG-INFO found   )warningspkginfo.distributionr   catch_warningsr   metadata_versionnameversionlenstrmessage
startswithcategory)r   r   warnedr   r   r   r    test_develop_ctor_w_invalid_path   s   
r   )pytestr   r   r   r   r   r   r   <module>   s    