관리-도구
편집 파일: test_tracker.cpython-311.pyc
� �܋f�+ � �j � d dl Z d dlmZ d dlZd dlZd dlmZ d dlmZ d dl m Z G d� de� � ZdS )� N)�StringIO)�mock)�TestCase)�Trackerc �� � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Z e j dd� � d � � � Z e j dd� � d� � � Zd� Zd� Z e j dd� � d� � � Z e j dd� � d� � � Z e j dd� � d� � � Zd� Z e j dd� � d� � � Z e j dd� � d� � � Z e j dd� � d� � � Z e j dd� � d� � � Z e j dd� � d� � � Z e j dd� � d� � � Zd� Zd� Zd� Zd� Z d � Z! e j dd� � d!� � � Z"d"S )#�TestTrackerc �. � d� |�� � S )Nz# TAP results for {test_case})� test_case)�format)�selfr s �g/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/tap/tests/test_tracker.py�_make_headerzTestTracker._make_header s � �.�5�5� �5�J�J�J� c �X � t � � }| � |j i � � d S �N)r �assertEqual�_test_cases�r �trackers r �test_has_test_caseszTestTracker.test_has_test_cases s* � ��)�)������,�b�1�1�1�1�1r c � � t � � }|� d� � | � |j � d� � g � � d S )N� FakeTestClass)r �_trackr r �getr s r �test_tracks_classzTestTracker.test_tracks_class sJ � ��)�)������'�'�'�����,�0�0��A�A�2�F�F�F�F�Fr c �� � t � � }|� dd� � |j d d }| � |j � � | � |j d� � d S �N�FakeTestCase� a descriptionr )r �add_okr � assertTrue�okr �description�r r �lines r �test_adds_okzTestTracker.test_adds_ok sd � ��)�)�����~��7�7�7��"�>�2�1�5������� � � �����)�?�;�;�;�;�;r c �� � t � � }|� dd� � |j d d }| � |j � � | � |j d� � d S r )r � add_not_okr �assertFalser"