| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/_pytest/__pycache__/ |
Upload File : |
a
05d�~ � @ sd 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/m0Z0 dd!l/m1Z1 dd"l2m3Z3 dd#l2m4Z4 e�r�dd$l5m6Z6 e%dd%�d&d'�Z7e8e8d(�d)d*�Z9eeed+geee:e f f ee:e f d,�d-d.�Z;eee:e f d/�d0d1�Z<ed+eee:e f d2�d3d4�Z=d+dd5�d6d7�Z>d+e?d5�d8d9�Z@e e?d(�d:d;�ZAe eee? d<�d=d>�ZBeejC edd?�d@dA�ZDG dBdC� dC�ZEG dDdE� dEeF�ZGG dFdG� dGeH�ZIejJG dHdI� dIee e8f ��ZKeG dJd+� d+ejL��ZMe8e8dK�dLdM�ZNdNdO�e e8e?ee ee8 f dP�dQdR�ZOdS )SzHCore 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)�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)td*d+d,� |jd-d"d.d/d0d1� |jd2dd3d4d5� | �d6d7�}|jd8d9d:d"d;d� |jd<d"d=d� |jd>dd?d@dA� |jdBdd?dCdA� |jdDddEdFdA� |jdGdHd dItjtdGdJ�dKdL� |jdMd"dNd.dOdP� |jdQdRd"dSd.dTdP� |jdUd"dVd.dWdP� |jdXdYg dZ�d[d\d]� | �d^d_�}|jd`dad t dIdbdc� d S )dN�
norecursedirsz)Directory patterns to avoid for recursion�args) z*.eggz.*�_darcsZbuild�CVSZdistZnode_modules�venvz{arch})�type�defaultZ testpathszZDirectories to search for tests when no files or directories are given on the command lineZgeneralzRunning 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)r2 r5 �filterwarningsZlinelistz_Each line specifies a pattern for warnings.filterwarnings. Processed after -W/--pythonwarnings.)r- r5 z --maxfailZnum�storer z'Exit after first num failures or errors)�metavarr2 r- r3 r. r5 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-c�fileZinifilenamezbLoad configuration from `file` instead of trying to locate one of the implicit configuration files)r9 r- r3 r5 z--continue-on-collection-errorsF�continue_on_collection_errorsz4Force test execution even if collection errors occur)r2 r. r3 r5 z --rootdirZrootdirz�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'.)r2 r3 r5 �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))r2 r9 r5 z
--ignore-globz5Ignore path pattern during collection (multi-allowed)z
--deselectZ
nodeid_prefixzDDeselect item (via node id prefix) during collection (multi-allowed)z--confcutdirZ
confcutdir�dir)Zoptnamez1Only load conftest.py's relative to specified dir)r3 r. r9 r- r5 z--noconftestZ
noconftestz Don't load any conftest.py files)r2 r3 r. r5 z--keepduplicatesz--keep-duplicates�keepduplicateszKeep duplicate testsz--collect-in-virtualenv�collect_in_virtualenvz2Don't ignore tests in a local virtualenv directoryz
--import-mode�prepend)rC r6 � importlib�
importmodez\Prepend/append to sys.path when importing test modules and conftest files. Default: prepend.)r. �choicesr3 r5 Zdebugconfigz(test session debugging and configurationz
--basetempZbasetempz^Base temporary directory for this test run. (Warning: this directory is removed if it exists.))r3 r. r- r9 r5 )
ZaddiniZgetgroupZ
_addoptionZ addoption�int�str� functools�partialr �validate_basetemp)r&