관리-도구
편집 파일: setuponly.cpython-311.pyc
� �܋f� � � � d dl mZ d dl mZ d dl mZ d dlZd dlmZ d dlmZ d dlm Z d dl mZ d d lm Z d d lmZ d dlmZ ded dfd�Z ej d�� � de e ded ed fd�� � Zde e d dfd�Zde e ded dfd�Z ej d�� � ded eeee f fd�� � ZdS )� )� Generator)�Optional)�UnionN)�saferepr)�Config)�ExitCode)�Parser)� FixtureDef)� SubRequest)�Scope�parser�returnc � � | � d� � }|� dddd�� � |� dddd �� � d S ) 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_addoptionr sm � ��O�O�M�*�*�E� �O�O���� 8� � � � � �O�O���� ;� � � � � � � T)�hookwrapper� fixturedef�request)NNNc # �& K � d V � |j j j ryt |d� � rW| j rBt | j � � r| � |j � � }n| j |j }n|j }|| _ t | d� � d S d S )N�param�SETUP) �config�option� setupshow�hasattr�ids�callabler �param_index�cached_param�_show_fixture_action)r r r s 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� 2r c � � | j �<| j j }|j j r&t | d� � t | d� � r| `d S d S d S d S )N�TEARDOWNr'