| Server IP : 46.101.140.223 / Your IP : 216.73.217.61 Web Server : nginx/1.22.1 System : Linux debian-s-1vcpu-1gb-fra1-01 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : deploy-others ( 1001) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/_pytest/assertion/__pycache__/ |
Upload File : |
�
��c� �
� � d Z ddlmZ ddlmZ ddlmZ ddlmZ dZdZ dZ
dd
ee dedee d
ee fd�Z
ded
efd�Z ddee dee dee d
ee fd�Zdee ded
ee fd�Zd S )z�Utilities for truncating assertion output.
Current default behaviour is to truncate assertion explanations at
~8 terminal lines, unless running in "-vv" mode or running on CI.
� )�List)�Optional)�util)�Item� i� zuse '-vv' to showN�explanation�item�
max_length�returnc �B � t |� � rt | � � S | S )zGTruncate this assertion explanation if the given test item is eligible.)�_should_truncate_item�_truncate_explanation)r r r
s �</usr/lib/python3/dist-packages/_pytest/assertion/truncate.py�truncate_if_requiredr s( � � �T�"�"� 2�$�[�1�1�1��� c �X � | j j j }|dk ot j � � S )z9Whether or not this test item is eligible for truncation.� )�config�option�verboser �
running_on_ci)r r s r r
r
s* � ��k� �(�G��Q�;�3�t�1�3�3�3�3r �input_lines� max_lines� max_charsc �� � |�t }|�t }t d� | � � � � }t | � � |k r||k r| S | d|� }t ||� � }|d dz |d<