????

Your IP : 3.12.153.221


Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/_pytest/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/_pytest/__pycache__/setuponly.cpython-311.pyc

�

�܋f����ddlmZddlmZddlmZddlZddlmZddlmZddlm	Z	ddl
mZdd	lm
Z
dd
lmZddlmZded
dfd�Zejd���de
eded
edfd���Zde
ed
dfd�Zde
eded
dfd�Zejd���ded
eeee	ffd���ZdS)�)�	Generator)�Optional)�UnionN)�saferepr)�Config)�ExitCode)�Parser)�
FixtureDef)�
SubRequest)�Scope�parser�returnc��|�d��}|�dddd���|�dddd	���dS)
N�debugconfigz--setuponlyz--setup-only�
store_truez)Only setup fixtures, do not execute tests)�action�helpz--setupshowz--setup-showz,Show setup of fixtures while executing tests)�getgroup�	addoption)r
�groups  �b/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/_pytest/setuponly.py�pytest_addoptionrsm���O�O�M�*�*�E�	�O�O����
8�	����
�O�O����
;�	������T)�hookwrapper�
fixturedef�request)NNNc#�&K�dV�|jjjryt|d��rW|jrBt|j��r|�|j��}n|j|j}n|j}||_t|d��dSdS)N�param�SETUP)
�config�option�	setupshow�hasattr�ids�callabler�param_index�cached_param�_show_fixture_action)rrrs   r�pytest_fixture_setupr)s�����
�E�E�E��~��&�2��7�G�$�$�
	,��~�
&��J�N�+�+�@�&�N�N�7�=�9�9�E�E�&�N�7�+>�?�E�E��
��&+�J�#��Z��1�1�1�1�1�2�2rc��|j�<|jj}|jjr&t|d��t
|d��r|`dSdSdSdS)N�TEARDOWNr')�
cached_result�_fixturemanagerr r!r"r(r#r')rr s  r�pytest_fixture_post_finalizerr.3sm����+��+�2���=�"�	,� ��Z�8�8�8��z�>�2�2�
,��+�+�+�,�+�	,�	,�
,�
,r�msgc���|jj}|j�d��}|r|���|���}|���ttt�����
|j��}|�d|z��|�d�
|�d��|jd���|j�����|dkr[t%d�|jD����}|r;|�d	�
d
�|������t+|d��r-|�dt-|jd
����d���|���|r|���dSdS)N�capturemanagerz  z{step} {scope} {fixture}�r)�step�scope�fixturerc3�&K�|]}|dk�|V��
dS)rN�)�.0�args  r�	<genexpr>z'_show_fixture_action.<locals>.<genexpr>Ps,����M�M�c�C�9�<L�<L�c�<L�<L�<L�<L�M�Mrz (fixtures used: {})z, r'�[�*)�maxsize�])r-r �
pluginmanager�	getplugin�suspend_global_capture�get_terminal_writer�line�list�reversedr�index�_scope�write�format�ljustr4�upper�argname�sorted�argnames�joinr#rr'�flush�resume_global_capture)rr/r �capman�tw�scope_indent�depss       rr(r(<s���
�
'�
.�F�
�
!�
+�
+�,<�
=�
=�F�
�(��%�%�'�'�'�	�	#�	#�	%�	%�B��G�G�I�I�I������(�(�.�.�z�/@�A�A�L��H�H�W�|�
#�$�$�$��H�H�"�)�)����1����"�1�%�+�+�-�-��&�	*�	
�	
�����g�~�~��M�M�Z�%8�M�M�M�M�M���	E��H�H�+�2�2�4�9�9�T�?�?�C�C�D�D�D��z�>�*�*�G�
���E�X�j�5�r�B�B�B�E�E�E�F�F�F��H�H�J�J�J�
�'��$�$�&�&�&�&�&�'�'r)�tryfirstr c�6�|jjrd|j_dS)NT)r!�	setuponlyr")r s r�pytest_cmdline_mainrY]s��
�}��'�"&��
���4r)�typingrrr�pytest�_pytest._io.safereprr�_pytest.configrr�_pytest.config.argparsingr	�_pytest.fixturesr
r�
_pytest.scoperr�hookimpl�objectr)r.�strr(�intrYr7rr�<module>res���������������������
�
�
�
�)�)�)�)�)�)�!�!�!�!�!�!�#�#�#�#�#�#�,�,�,�,�,�,�'�'�'�'�'�'�'�'�'�'�'�'�������
�V�
��
�
�
�
� ���T�"�"�"�2��6�"�2�-7�2��� �2�2�2�#�"�2�&,�j��.@�,�T�,�,�,�,�'�Z��%7�'�c�'�d�'�'�'�'�B���$�������8�E�#�x�-�4H�+I���� ����r