403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/_pytest/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/_pytest/__pycache__/helpconfig.cpython-39.pyc
a

05dH!�@sdZddlZddlZddlmZddlmZddlmZddlmZddl	Z	ddl
mZddl
mZdd	l
m
Z
dd
lmZGdd�de�Zedd
�dd�Ze	jdd�dd��Zedd�dd�Zeeeeefd�dd�Zedd�dd�ZdgZeeed�dd�Zeeed�dd�ZdS) z3Version info, help messages, tracing configuration.�N)�Action)�List)�Optional)�Union)�Config)�ExitCode)�	PrintHelp)�Parsercs,eZdZdZd�fdd�	Zd	dd�Z�ZS)
�
HelpActiona}An argparse Action that will raise an exception in order to skip the
    rest of the argument parsing when --help is passed.

    This prevents argparse from quitting due to missing required arguments
    when any are defined, for example by ``pytest_addoption``.
    This is similar to the way that the builtin argparse --help option is
    implemented by raising SystemExit.
    NFcst�j||d|d|d�dS)NTr)�option_strings�dest�const�default�nargs�help)�super�__init__)�selfrrrr��	__class__��6/usr/lib/python3.9/site-packages/_pytest/helpconfig.pyrs�zHelpAction.__init__cCs&t||j|j�t|jdd�r"t�dS)NZafter_preparseF)�setattrrr
�getattr�_parserr)r�parser�	namespace�values�
option_stringrrr�__call__$szHelpAction.__call__)NFN)N)�__name__�
__module__�__qualname__�__doc__rr�
__classcell__rrrrr
s	
r
)r�returnc	Cs�|�d�}|jddddddd�|jd	d
tddd
�|jdddgddd�|jdddddd�|jddddddd d!�|jd"d#d$dd%d&�dS)'NZdebugconfigz	--versionz-V�countr�versionzoDisplay pytest version and information about plugins. When given twice, also display information about plugins.)�actionrrrz-hz--helprz(Show help message and configuration info)r(rrz-p�appendZplugins�namez�Early-load given plugin module name or entry point (multi-allowed). To avoid loading of plugins, use the `no:` prefix, e.g. `no:doctest`.)r(rr�metavarrz
--traceconfigz--trace-config�
store_trueFz)Trace considerations of conftest.py files)r(rrz--debug�store�?zpytestdebug.log�debugZDEBUG_FILE_NAMEz�Store internal tracing debug information in this log file. This file is opened with 'w' and truncated as a result, care advised. Default: pytestdebug.log.)r(rr
rr+rz-oz--override-iniZoverride_iniz^Override ini option with "option=value" style, e.g. `-o xfail_strict=True -o cache_dir=cache`.)rr(r)ZgetgroupZ	addoptionZ
_addoptionr
)r�grouprrr�pytest_addoption,s^
�	��
���r1T)Zhookwrapperc	#s�dV}|����jjr��jj}t|d����dtjd�tt	t
j��t�
��jjf��jj��j��j���t
j�d|�dd����fdd�}��|�dS)N�wz.versions pytest-%s, python-%s
cwd=%s
args=%s

�.z'writing pytest debug information to %s
)r%cs2���tj�d�j��jj�d���dS)Nz%wrote pytest debug information to %s
)�close�sys�stderr�writer*�trace�root�	setwriterr��configZ	debugfileZundo_tracingrr�
unset_tracing{sz+pytest_cmdline_parse.<locals>.unset_tracing)Z
get_result�optionr/�openr7�pytest�__version__�join�map�strr5�version_info�os�getcwdZinvocation_params�argsr8r9r:�
pluginmanagerZenable_tracingr6Zadd_cleanup)�outcome�pathr=rr;r�pytest_cmdline_parseds&
���

rL)r<r%cCsf|jjdkrLtj�d�tjtj��t	|�}|rb|D]}tj�|d�q4ntj�dtj�d��dS)N�z,This is pytest version {}, imported from {}
�
zpytest )
r>r'r5�stdoutr7�formatr@rA�__file__�getpluginversioninfo)r<�
plugininfo�linerrr�showversion�s��rUcCs@|jjdkrt|�dS|jjr<|��t|�|��dSdS)Nr)r>r'rUrZ
_do_configure�showhelpZ_ensure_unconfigure)r<rrr�pytest_cmdline_main�srWcCs�ddl}|j�d�}|j}|�|jj���|��|�d�|��|j	}d}d|}|jj
D]�}|jj|\}}	}
|	dur�d}	|dur�td|����|�d|	�d	�}|�d
|�t
|�}||dkr�|��|j||||dd
�}
|
D]}|�|�q�q`|�d||d�|j|||dd�}|r`|�|d�|dd�D]}|�||��qDq`|��|�d�gd�}|D]"\}}|�d|d�d|����qz|��|��|�d�|�d�|�d�|j�dg�D]}|jd|jdd��q�dS)NrZterminalreporterzY[pytest] ini-options in the first pytest.ini|tox.ini|setup.cfg|pyproject.toml file found:�� �stringz!help argument cannot be None for z (z):z  %s�F)�initial_indent�subsequent_indent�break_on_hyphens�)r^rMzEnvironment variables:))ZPYTEST_ADDOPTSzExtra command line options)ZPYTEST_PLUGINSz.Comma-separated plugins to load during startup)ZPYTEST_DISABLE_PLUGIN_AUTOLOADz"Set to disable plugin auto-loading)ZPYTEST_DEBUGz1Set to enable debug tracing of pytest's internals�  z<24z/to see available markers type: pytest --markersz1to see available fixtures type: pytest --fixturesz�(shown according to specified file_or_dir or current dir if not specified; fixtures with leading '_' are only shown with the '-v' option�warningsz
warning : T)Zred)�textwraprIZ
get_pluginZ_twr7rZ	optparser�format_helprTZ	fullwidthZ	_ininamesZ_inidict�	TypeError�len�wrapZstats�get�message)r<rbZreporterZtw�columnsZ
indent_len�indentr*r�typer�specZspec_lenZ	helplinesrT�wrapped�varsZ
warningreportrrrrV�sj��


�rV)Zpytest_pluginszlist of plugin names to loadcCsdg}|j��}|r`|�d�|D]>\}}t|dt|��}|j�d|j�d|��}|�d|�q |S)Nzsetuptools registered plugins:rQ�-z at r`)rIZlist_plugin_distinfor)r�reprZproject_namer')r<�linesrS�pluginZdist�locZcontentrrrrR�s

rRcCs�g}|jjs|jjr<|�dtj���t|�}|r<|�|�|jjr�|�d�|j�	�}|D]:\}}t
|d�rv|j}nt|�}|�d|d�d|���q\|S)Nzusing: pytest-zactive plugins:rQz    z<20z: )
r>r/Ztraceconfigr)r@rArR�extendrIZlist_name_plugin�hasattrrQrp)r<rqZverinfo�itemsr*rr�rrrr�pytest_report_header�s



rx)r#rFr5�argparser�typingrrrr@Z_pytest.configrrrZ_pytest.config.argparsingr	r
r1ZhookimplrLrU�intrWrVZconftest_optionsrDrRrxrrrr�<module>s*8

J

Youez - 2016 - github.com/yon3zu
LinuXploit