Your IP : 216.73.216.213
B
.��V�
� @ s� yd dl mZ W n ek
r0 d dlmZ Y nX d dlZd dlmZ d dlZd dlm Z d dl
mZ d dlm
Z
e
� Zdd� Zejjd d
� �Zdd� Zd
d� Zdd� ZdS )� )�StringION)�TerminalWriter)�format_as_diagnostics)�_)�Trackerc C sh | j ddd�}|jdddtd�d� |jd ddtd
�d� |jdddtd�d� |jd
dtd�d� dS )z%Include all the command line options.zterminal reportingZgeneral)�afterz--tap-streamF�
store_truez<Stream TAP output instead of the default test runner output.)�default�action�helpz--tap-filesz?Store all TAP test results into individual files per test case.z--tap-combinedz7Store all TAP test results into a combined output file.z--tap-outdir�pathzhAn optional output directory to write TAP files to. If the directory does not exist, it will be created.)�metavarr N)ZgetgroupZ addoptionr )�parser�group� r �D/opt/alt/python37/lib/python3.7/site-packages/tap/plugins/_pytest.py�pytest_addoption s
r c C sF | j jt_| j jt_| j jrB| j�d�}| j� |� dt_
tjt_
dS )z(Set all the options before the test run.ZterminalreporterTN)�optionZ
tap_outdir�tracker�outdir�tap_combined�combined�
tap_streamZ
pluginmanagerZ getplugin�
unregister� streaming�sys�stdout�stream)�configZreporterr r r �pytest_configure&