| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/_pytest/assertion/__pycache__/ |
Upload File : |
�
��Hgk � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ dZ dZ
dZ d dd
�Zdd�Z
d dd�Zdd
�Zy )z�Utilities for truncating assertion output.
Current default behaviour is to truncate assertion explanations at
terminal lines, unless running with an assertions verbosity level of at least 2 or running on CI.
� )�annotations)�util)�Config)�Item� i� zuse '-vv' to showNc �2 � t |� rt | � S | S )zGTruncate this assertion explanation if the given test item is eligible.)�_should_truncate_item�_truncate_explanation)�explanation�item�
max_lengths �<C:\Python312\Lib\site-packages\_pytest/assertion/truncate.py�truncate_if_requiredr s � � �T�"�$�[�1�1��� c � � | j j t j � }|dk xr t j
� S )z9Whether or not this test item is eligible for truncation.� )�config�
get_verbosityr �VERBOSITY_ASSERTIONSr �
running_on_ci)r �verboses r r r s7 � ��k�k�'�'��(C�(C�D�G��Q�;�3�t�1�1�3�3�3r c � � |�t }|�t }t dj | � � }|dz }|dz }t | � |k r||k r| S | d| }d}t dj |� � |kD r
t ||� }nd}t | � t |� z
}|d r|d dz |d<