File: //home/arjun/projects/env/lib/python3.10/site-packages/_pytest/__pycache__/main.cpython-310.pyc
o
%we� � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlm Z ddl
mZ ddl
mZ ddl
m
Z
ddl
mZ ddl
mZ dd l
mZ dd
l
mZ ddl
mZ ddl
mZ dd
l
mZ ddl
mZ ddl
mZ ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddlm!Z! ddlm"Z" ddlm#Z# ddl$m%Z% ddl&m'Z' ddl(m)Z) ddl*m+Z+ ddl*m,Z, ddl*m-Z- ddl*m.Z. dd l*m/Z/ dd!l0m1Z1 dd"l0m2Z2 dd#l3m4Z4 dd$l3m5Z5 er�dd%l6m7Z7 d&e%d'dfd(d)�Z8d*e9d'e9fd+d,�Z:d-ed.eed/geee;e f f d'ee;e f fd0d1�Z<d-ed'ee;e f fd2d3�Z=d-ed4d/d'eee;e f fd5d6�Z>dVd7d8�Z?d4d/d'e@fd9d:�ZAd*e d'e@fd;d<�ZBd=e d-ed'ee@ fd>d?�ZCd@eejD d-ed'dfdAdB�ZEG dCdD� dD�ZFG dEdF� dFeG�ZHG dGdH� dHeI�ZJejKG dIdJ� dJee e9f ��ZLeG dKd/� d/ejM��ZNdLe9d'e9fdMdN�ZOdOdP�dQe dRe9dSe@d'ee ee9 f fdTdU�ZPdS )WzHCore implementation of the testing process: init, session, runtest loop.� N)�Path)�Callable)�Dict)� FrozenSet)�Iterator)�List)�Optional)�Sequence)�Set)�Tuple)�Type)�
TYPE_CHECKING)�Union)�nodes)�final)�overload)�Config)�
directory_arg)�ExitCode)�hookimpl)�PytestPluginManager)�
UsageError)�Parser)�FixtureManager)�exit��absolutepath)�bestrelpath��
fnmatch_ex)�safe_exists)�visit)�
CollectReport)�
TestReport)�collect_one_node)�
SetupState)�Literal�parser�returnc C s� | j dddg d�d� | j dddg d� | �dd �}|jd
ddd
ddd� | �d�}|jddddd� | j dddd� |jdddtd
ddd � |jd!d"d#d� |jd$d"d%d� |jd&d"d'd� |jd(d)d*td+d,d-� |jd.d"d/d0d1d2� |jd3dd4d5d6� | �d7d8�}|jd9d:d;d"d<d� |jd=d"d>d� |jd?dd@dAdB� |jdCdd@dDdB� |jdEddFdGdB� |jdHdId dJtjtdHdK�dLdM� |jdNd"dOd/dPdQ� |jdRdSd"dTd/dUdQ� |jdVd"dWd/dXdQ� |jdYdZg d[�d\d]d^� | �d_d`�}|jdadbd t dJdcdd� d S )eN�
norecursedirsz)Directory patterns to avoid for recursion�args) z*.eggz.*�_darcs�build�CVS�dist�node_modules�venvz{arch})�type�default� testpathszZDirectories to search for tests when no files or directories are given on the command line�generalzRunning and selection optionsz-xz--exitfirst�store_const�maxfail� z,Exit instantly on first error or failed test)�action�dest�const�helpzpytest-warningsz-Wz--pythonwarnings�appendz<Set which warnings to report, see -W option of Python itself)r8 r; �filterwarnings�linelistz_Each line specifies a pattern for warnings.filterwarnings. Processed after -W/--pythonwarnings.)r1 r; z --maxfail�num�storer z'Exit after first num failures or errors)�metavarr8 r1 r9 r2 r; z--strict-config�
store_truezbAny warnings encountered while parsing the `pytest` section of the configuration file raise errorsz--strict-markerszVMarkers not registered in the `markers` section of the configuration file raise errorsz--strictz&(Deprecated) alias to --strict-markersz-cz
--config-file�FILE�inifilenamezcLoad configuration from `FILE` instead of trying to locate one of the implicit configuration files.)rA r1 r9 r; z--continue-on-collection-errorsF�continue_on_collection_errorsz4Force test execution even if collection errors occur)r8 r2 r9 r; z --rootdir�rootdirz�Define root directory for tests. Can be relative path: 'root_dir', './root_dir', 'root_dir/another_dir/'; absolute path: '/home/user/root_dir'; path with variables: '$HOME/root_dir'.)r8 r9 r; �collect�
collectionz
--collectonlyz--collect-onlyz--coz&Only collect tests, don't execute themz--pyargsz1Try to interpret all arguments as Python packagesz--ignore�pathz-Ignore path during collection (multi-allowed))r8 rA r; z
--ignore-globz5Ignore path pattern during collection (multi-allowed)z
--deselect�
nodeid_prefixzDDeselect item (via node id prefix) during collection (multi-allowed)z--confcutdir�
confcutdir�dir)�optnamez1Only load conftest.py's relative to specified dir)r9 r2 rA r1 r; z--noconftest�
noconftestz Don't load any conftest.py files)r8 r9 r2 r; z--keepduplicatesz--keep-duplicates�keepduplicateszKeep duplicate testsz--collect-in-virtualenv�collect_in_virtualenvz2Don't ignore tests in a local virtualenv directoryz
--import-mode�prepend)rQ r<