404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.133.156.254: ~ $
�

�܋fD
��t�ddlZddlZddlZddlZddlmZddlmZddlmZm	Z	Gd�dej
��ZdS)�N)�mock)�
TAPTestRunner)�
TAPTestResult�_trackerc�j�eZdZd�Zd�Zd�Zd�Zejd��d���Z	d�Z
d�Zd	�Zd
S)�TestTAPTestRunnerc�b�t��}|�|jt��dS)N)r�assertEqual�resultclassr)�self�runners  �f/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/tap/tests/test_runner.py�test_has_tap_test_resultz*TestTAPTestRunner.test_has_tap_test_results*����������+�]�;�;�;�;�;�c���tj}tj��}t	j|��|�|tj��|t_dS)z�Test that the test runner sets the outdir so that TAP
        files will be written to that location.

        Setting class attributes to get the right behavior is a dirty hack, but
        the unittest classes aren't very extensible.
        N)r�outdir�tempfile�mkdtempr�
set_outdirr
)r�previous_outdirrs   r�test_runner_uses_outdirz)TestTAPTestRunner.test_runner_uses_outdirsM��#�/���!�#�#��� ��(�(�(�������1�1�1�)����rc��tj}d}tj|��|�|tj��|t_dS)z0Test that format is set on TAPTestResult FORMAT.z"{method_name}: {short_description}N)r�FORMATr�
set_formatr
)r�previous_format�fmts   r�test_runner_uses_formatz)TestTAPTestRunner.test_runner_uses_format!sI��(�.��2��� ��%�%�%�����m�2�3�3�3�.�
���rc��tj}tjd��|�tj��|t_dS)zTest that output is combined.TN)r�combinedr�set_combined�
assertTrue)r�previous_combineds  r�test_runner_uses_combinedz+TestTAPTestRunner.test_runner_uses_combined-sA��%�-���"�4�(�(�(�����)�*�*�*�-����rzsys.exitc��tj}d}tj|��tddd��}t	j��}|�|��|�|j��|t_dS)z%A bad format string exits the runner.zNot gonna work {sort_desc}NT�)	rrrrr�Mock�_descriptionr!�called)r�	fake_exitr�
bad_format�result�tests      r�test_bad_format_stringz(TestTAPTestRunner.test_bad_format_string8su��(�.��1�
�� ��,�,�,��t�T�1�-�-���y�{�{�����D�!�!�!����	�(�)�)�)�.�
���rc�>�tj}tj}t��}|�d��|�tj��|�tjtj��|t_|t_dS)z&The tracker is set for streaming mode.TN)r�	streaming�streamr�
set_streamr!�sys�stdout�r�previous_streaming�previous_streamr
s    r�&test_runner_sets_tracker_for_streamingz8TestTAPTestRunner.test_runner_sets_tracker_for_streamingGso��%�/��"�/���������$��������*�+�+�+��������4�4�4�/���)����rc�
�tj}tj}t��}|�d��|�|jjjtj��|t_|t_dS)NT)	rr/r0rr1r!�name�os�devnullr4s    r�+test_runner_stream_to_devnull_for_streamingz=TestTAPTestRunner.test_runner_stream_to_devnull_for_streamingUs`��%�/��"�/���������$��������
�,�1�2�:�>�>�>�/���)����rc��tj}tjd��|�tj��tjd��|�tj��|t_dS)z,Test that the case header can be turned off.FTN)r�headerr�
set_header�assertFalser!)r�previous_headers  r�test_runner_uses_headerz)TestTAPTestRunner.test_runner_uses_headerasb��#�/��� ��'�'�'������)�)�)�� ��&�&�&������(�(�(�)����rN)
�__name__�
__module__�__qualname__rrrr#r�patchr-r7r<rB�rrrrs�������<�<�<�*�*�*�"
/�
/�
/�	.�	.�	.��T�Z�
���/�/���/�*�*�*�
*�
*�
*�*�*�*�*�*rr)r:r2r�unittestr�tapr�
tap.runnerrr�TestCaserrGrr�<module>rLs���	�	�	�	�
�
�
�
���������������������.�.�.�.�.�.�.�.�a*�a*�a*�a*�a*��)�a*�a*�a*�a*�a*r

Filemanager

Name Type Size Permission Actions
__init__.cpython-311.pyc File 309 B 0644
factory.cpython-311.pyc File 2.46 KB 0644
run.cpython-311.pyc File 1.14 KB 0644
test_adapter.cpython-311.pyc File 3.76 KB 0644
test_directive.cpython-311.pyc File 2.6 KB 0644
test_formatter.cpython-311.pyc File 1.54 KB 0644
test_line.cpython-311.pyc File 3.46 KB 0644
test_loader.cpython-311.pyc File 7.51 KB 0644
test_main.cpython-311.pyc File 4.37 KB 0644
test_parser.cpython-311.pyc File 29.05 KB 0644
test_result.cpython-311.pyc File 7.55 KB 0644
test_rules.cpython-311.pyc File 6.42 KB 0644
test_runner.cpython-311.pyc File 5.55 KB 0644
test_tracker.cpython-311.pyc File 21.82 KB 0644
testcase.cpython-311.pyc File 965 B 0644