Your IP : 216.73.216.196


Current Path : /opt/alt/python37/lib/python3.7/site-packages/_pytest/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/_pytest/__pycache__/helpconfig.cpython-37.pyc

B

C$�X��@sjdZddlZddlZddlZddlZdd�Zejdd�dd��Zd	d
�Zdd�Z	d
gZ
dd�Zdd�ZdS)z6 version info, help messages, tracing configuration.  �NcCs�|�d�}|jdddd�|jddddd	d
�|jddd
gddd�|jdddddd�f|jdddddd�|jddddddd�dS) NZdebugconfigz	--version�
store_truez2display pytest lib version and import information.)�action�helpz-hz--helprz(show help message and configuration info)r�destrz-p�appendZplugins�nameznearly-load given plugin (multi-allowed). To avoid loading of plugins, use the `no:` prefix, e.g. `no:doctest`.)rr�default�metavarrz
--traceconfigz--trace-configFz*trace considerations of conftest.py files.)rrrz--debug�debugz>store internal tracing debug information in 'pytestdebug.log'.)rrrrz-oz--override-ini�*Zoverride_inizLoverride config option with option=value style, e.g. `-o xfail_strict=True`.)�nargsrrr)ZgetgroupZ	addoptionZ
_addoption)�parser�group�r�C/opt/alt/python37/lib/python3.7/site-packages/_pytest/helpconfig.py�pytest_addoptions$

rT)Zhookwrapperc
#s�dV}|����jjr�tj�d�}t|d����dtj	t
j	d�tt
tj��t���jf��jj��j��j���tj�d|����fdd�}��|�dS)Nzpytestdebug.log�wz5versions pytest-%s, py-%s, python-%s
cwd=%s
args=%s

�.z&writing pytestdebug information to %s
cs2���tj�d�j��jj�d���dS)Nz$wrote pytestdebug information to %s
)�close�sys�stderr�writer�trace�root�	setwriterr)�config�	debugfile�undo_tracingrr�
unset_tracing-s

z+pytest_cmdline_parse.<locals>.unset_tracing)Z
get_result�optionr
�os�path�abspath�openr�pytest�__version__�py�join�map�strr�version_info�getcwdZ	_origargsrrr�
pluginmanagerZenable_tracingrZadd_cleanup)Zoutcomer!rr)rrrr�pytest_cmdline_parses

r-cCs�|jjrZtj�tj�}tj�	dtj
|f�t|�}|rVx|D]}tj�	|d�q>WdS|jjr~|�
�t|�|��dSdS)Nz,This is pytest version %s, imported from %s
�
r)r�versionr&r!�localr$�__file__rrrr%�getpluginversioninforZ
_do_configure�showhelpZ_ensure_unconfigure)r�p�
plugininfo�linerrr�pytest_cmdline_main6s
r7cCsB|j�d�}|j}|�|jj���|��|��|�d�|��xZ|jjD]N}|jj	|\}}}|dkrrd}d||f}d||f}|�|d|j
��qPW|��|�d�ddd	g}	x"|	D]\}}|�d||f�q�W|��|��|�d
�|�d�|�d�x,|j�d
g�D]}
|jd|
j
dd��q WdS)NZterminalreporterzJ[pytest] ini-options in the first pytest.ini|tox.ini|setup.cfg file found:�stringz%s (%s)z
  %-24s %szenvironment variables:)ZPYTEST_ADDOPTSzextra command line options)ZPYTEST_PLUGINSz.comma-separated plugins to load during startup)ZPYTEST_DEBUGz1set to enable debug tracing of pytest's internalsz/to see available markers type: pytest --markersz1to see available fixtures type: pytest --fixtureszJ(shown according to specified file_or_dir or current dir if not specified)�warningsz
warning : T)Zred)r,Z
get_pluginZ_twr�_parserZ	optparserZformat_helpr6Z	_ininamesZ_inidictZ	fullwidthZstats�get�message)rZreporterZtwrr�typer�specr6�varsZ
warningreportrrrr3Fs:




r3)Zpytest_pluginszlist of plugin names to loadcCsbg}|j��}|r^|�d�x@|D]8\}}t|dt|��}d|j|j|f}|�d|�q"W|S)Nzsetuptools registered plugins:r1z%s-%s at %sz  )r,Zlist_plugin_distinfor�getattr�repr�project_namer/)r�linesr5�plugin�dist�loc�contentrrrr2rs

r2cCs�g}|jjs|jjr@|�dtjtjf�t|�}|r@|�|�|jjr�|�d�|j	�
�}x<|D]4\}}t|d�r||j}nt
|�}|�d||f�qbW|S)Nzusing: pytest-%s pylib-%szactive plugins:r1z
    %-20s: %s)rr
Ztraceconfigrr$r%r&r2�extendr,Zlist_name_plugin�hasattrr1rA)rrCZverinfo�itemsrrD�rrrr�pytest_report_header}s 



rL)
�__doc__r&r$r rrZhookimplr-r7r3Zconftest_optionsr2rLrrrr�<module>s)