| 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 : /usr/lib/python3/dist-packages/_pytest/__pycache__/ |
Upload File : |
�
��c�} � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z dd lm
Z
dd
lmZ ddlmZ ddl
mZ dd
lmZ er�ddlZddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m!Z! ddl m"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!l/m0Z0 dd"l/m1Z1 dd#l2m3Z3 dd$l4m5Z5 dd%l6m7Z7 ed&� � Z8 e8d'�(� � d�d,�� � Z9 e8d'�(� � d�d0�� � Z: e8d'�(� � d�d3�� � Z; e8d'�(� � d�d6�� � Z< e8d'�7� � d)d*d8ee= d+ed5 fd9�� � Z> e8e�:� � d4d5d8ee= d+dfd;�� � Z? e8d'�7� � d4d5d+eed<e@f fd=�� � ZAd>d5d1d2d8ee= d+dfd?�ZB e8d'�7� � d@dAd+eeC fdB�� � ZDd@dAd4d5dCedD d+dfdE�ZEd�dF�ZF e8d'�7� � dGedHdId4d5d+eeG fdJ�� � ZHdKedHdIdLdMd+dNfdO�ZId�dQ�ZJd�dS�ZKd�dV�ZLdCe dD d+dfdW�ZM e8d'�7� � d�dY�� � ZN e8d'�7� � dZedHdId+ed[ fd\�� � ZO e8d'�7� � dPed] d^e=d_eCd+eddDdMeed` f fda�� � ZP e8d'�7� � dbdcd+eeC fdd�� � ZQd�dg�ZR e8d'�7� � d4d5dheCdie=d+ee= fdj�� � ZS e8d'�7� � d@dAd+eeC fdk�� � ZT e8d'�7� � dRdDdldmd+eeC fdn�� � ZUdoe=dpe
e=ee@ e=f d+dfdq�ZVdoe=dpe
e=ee@ e=f d+dfdr�ZWd�ds�ZXd�dt�ZYdRdDdledD d+dfdu�ZZ e8d'�7� � dRdDdvdwd+edx fdy�� � Z[d�dz�Z\ e8d'�7� � d4d5dTed{ d+eee=ef fd|�� � Z] e8d'�7� � d4d5d}ee=ef d+eed{ fd~�� � Z^ e8d'�7� � dd�d�d�d+eeC fd��� � Z_ d�d��Z`d�d��Zad@dAd�ee@d<f d+dfd��Zbd�d��Zcd4d5d�e=d�eCd�eCd+eee= f
d��ZddRdDd�e@d�e=d�e=d+df
d��Zed4d5d�ed�dId+ee=ee= f fd��Zfd4d5d�ed�dIdCe dD d+ee=ee= f f
d��Zg e8d'�7� � dTed{ d4d5d+e
e=e=ee=ee=eGf f f fd��� � Zh d�d��Zi e8d'�(� � d�d�d�d�doe=dpee
e=e@e=f d+df
d��� � Zjd4d5d+ee=ef fd��Zkd�d�d�d�d+eeG fd��Zl d�d��Zmd�ed` dvd�dTed{ d+dfd��Znd�d��Zod�d��ZpdS )�zaHook specifications for pytest plugins which are invoked by pytest itself
and by builtin plugins.� )�Path)�Any)�Dict)�List)�Mapping)�Optional)�Sequence)�Tuple)�
TYPE_CHECKING)�Union)�HookspecMarker)�WARNING_CMDLINE_PREPARSE_HOOKN)�Literal)�
ExceptionRepr)�
ExceptionInfo)�Config)�ExitCode)�PytestPluginManager)�
_PluggyPlugin)�Parser)�
FixtureDef)�
SubRequest)�Session)� Collector)�Item)�Exit)�Class)�Function)�Metafunc)�Module)�
CollectReport)�
TestReport)�CallInfo)�TerminalReporter)�LEGACY_PATH�pytestT)�historic�
pluginmanagerr �returnc � � dS )a* Called at plugin registration time to allow adding new hooks via a call to
``pluginmanager.add_hookspecs(module_or_class, prefix)``.
:param pytest.PytestPluginManager pluginmanager: The pytest plugin manager.
.. note::
This hook is incompatible with ``hookwrapper=True``.
N� )r( s �2/usr/lib/python3/dist-packages/_pytest/hookspec.py�pytest_addhooksr- 6 � � � � � �pluginr �managerc � � dS )z�A new pytest plugin got registered.
:param plugin: The plugin module or instance.
:param pytest.PytestPluginManager manager: pytest plugin manager.
.. note::
This hook is incompatible with ``hookwrapper=True``.
Nr+ )r0 r1 s r, �pytest_plugin_registeredr3 B r. r/ �parserr c � � dS )a� Register argparse-style options and ini-style config values,
called once at the beginning of a test run.
.. note::
This function should be implemented only in plugins or ``conftest.py``
files situated at the tests root directory due to how pytest
:ref:`discovers plugins during startup <pluginorder>`.
:param pytest.Parser parser:
To add command line options, call
:py:func:`parser.addoption(...) <pytest.Parser.addoption>`.
To add ini-file values call :py:func:`parser.addini(...)
<pytest.Parser.addini>`.
:param pytest.PytestPluginManager pluginmanager:
The pytest plugin manager, which can be used to install :py:func:`hookspec`'s
or :py:func:`hookimpl`'s and allow one plugin to call another plugin's hooks
to change how command line options are added.
Options can later be accessed through the
:py:class:`config <pytest.Config>` object, respectively:
- :py:func:`config.getoption(name) <pytest.Config.getoption>` to
retrieve the value of a command line option.
- :py:func:`config.getini(name) <pytest.Config.getini>` to retrieve
a value read from an ini-style file.
The config object is passed around on many internal objects via the ``.config``
attribute or can be retrieved as the ``pytestconfig`` fixture.
.. note::
This hook is incompatible with ``hookwrapper=True``.
Nr+ )r4 r( s r, �pytest_addoptionr6 P r. r/ �configr c � � dS )a� Allow plugins and conftest files to perform initial configuration.
This hook is called for every plugin and initial conftest file
after command line options have been parsed.
After that, the hook is called for other conftest files as they are
imported.
.. note::
This hook is incompatible with ``hookwrapper=True``.
:param pytest.Config config: The pytest config object.
Nr+ �r7 s r, �pytest_configurer: w r. r/ )�firstresult�argsc � � dS )a� Return an initialized :class:`~pytest.Config`, parsing the specified args.
Stops at first non-None result, see :ref:`firstresult`.
.. note::
This hook will only be called for plugin classes passed to the
``plugins`` arg when using `pytest.main`_ to perform an in-process
test run.
:param pluginmanager: The pytest plugin manager.
:param args: List of arguments passed on the command line.
:returns: A pytest config object.
Nr+ )r( r<