Your IP : 216.73.216.196


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

B

.��V_�@s^ddlZddlZddlZddlmZddlmZejejfdd�Z	dd�Z
dd	�Zd
d�ZdS)�N)�_)�LoadercCs2t|�}t|�}tj|j|d�}|�|�}t|�S)z"Entry point for ``tappy`` command.)�	verbosity�stream)�
parse_args�build_suite�unittestZTextTestRunner�verbose�run�
get_status)�argvr�args�suiteZrunner�result�r�9/opt/alt/python37/lib/python3.7/site-packages/tap/main.py�mains

rcCs<t�}t|j�dks"|jddkr,|��}n|�|j�}|S)z8Build a test suite by loading TAP files or a TAP stream.r�-)r�len�filesZload_suite_from_stdin�load)r
�loaderrrrrrs

rcCs�td�}td�}tj||d�}|jdddtd�d�|jd	d
ddd
td�d�|�|dd��}|js~tj��r~t�	|�
��|S)NzA TAP consumer for PythonziWhen no files are given or a dash (-) is used for the file name, tappy will read a TAP stream from STDIN.)�description�epilogrZFILE�*zgA file containing TAP output. Any directories listed will be scanned for files to include as TAP files.)�metavar�nargs�helpz-vz	--verboseZstore_const��zuse verbose messages)�action�defaultZconstr)r�argparse�ArgumentParser�add_argumentrr�sys�stdin�isatty�exitZ
print_help)rrr�parserr
rrrrs

rcCs|��rdSdSdS)z$Get a return status from the result.rrN)Z
wasSuccessful)rrrrr9sr)
r"r%rZtap.i18nrZ
tap.loaderrr�stderrrrrrrrrr�<module>s