Your IP : 216.73.216.213
B
.��V
� @ s� d dl Z d dlZyd dlmZ W n$ ek
rD G dd� de�ZY nX d dlmZ d dlm Z d dl
mZ d dlm
Z
d d lmZ G d
d� de�ZG dd
� d
e�ZdS )� N)�SkipTestc @ s e Zd ZdZdS )r z/SkipTest does not exist earlier than Python 2.7N)�__name__�
__module__�__qualname__�__doc__� r r �B/opt/alt/python37/lib/python3.7/site-packages/tap/plugins/_nose.pyr s r )�Plugin)�ContextSuite)� formatter)�_)�Trackerc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�DummyStreamc G s d S )Nr )�self�argsr r r �write s zDummyStream.writec G s d S )Nr )r r r r r �writeln s zDummyStream.writelnc C s d S )Nr )r r r r �flush s zDummyStream.flushN)r r r r r r r r r r r s r c sn e Zd ZdZdZejf� fdd� Z� fdd�Zdd� Z d d
� Z
dd� Zd
d� Zdd� Z
dd� Zdd� Z� ZS )�TAPzLThis plugin provides test results in the Test Anything Protocol format.
�tapc sn t t| �j||d� |jdddtd�d� |jddtd �d
� |jdddtd�d� |jd
ddtd�d� d S )N)�envz--tap-streamF�
store_truez<Stream TAP output instead of the default test runner output.)�default�action�helpz--tap-outdir�PATHzhAn optional output directory to write TAP files to. If the directory does not exist, it will be created.)�metavarr z--tap-combinedz7Store all TAP test results into a combined output file.z--tap-format� �FORMATz�An optional format string for the TAP output. The format options are: {short_description} for the short description, and {method_name} for the test method name.)r r r )�superr �options�
add_optionr )r �parserr )� __class__r r r % s
zTAP.optionsc s: t t| ��||� | jr.t|j|j|jd�| _|j | _
d S )N)�outdir�combined� streaming)r r � configure�enabledr
Z
tap_outdirZtap_combinedZ
tap_stream�trackerZ
tap_format�_format)r r Zconf)r# r r r'