Your IP : 216.73.216.74
B
C$�X5/ � @ s� d Z ddlmZ ed�Zedd�dd� �Zedd�dd � �Zedd�d
d� �Zedd�dd
� �Zedd�dd� �Zedd�dd� �Z dd� Z
edd�dd� �Zdd� Zedd�dd� �Z
dd� Zdd� Zedd�dd � �Zedd�d!d"� �Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zd+d,� Zedd�d-d.� �Zedd�d/d0� �Zedd�d1d2� �Zedd�d3d4� �Zd5d6� Zedd�d7d8� �Zedd�d9d:� �Zd;d<� Zedd�d=d>� �Zd?d@� Z dAdB� Z!dCdD� Z"dEdF� Z#edd�dGdH� �Z$dIdJ� Z%edd�dKdL� �Z&dMdN� Z'dOdP� Z(dQdR� Z)dSdT� Z*dUdV� Z+dWdX� Z,edd�dYdZ� �Z-d[d\� Z.edd�d]d^� �Z/edd�d_d`� �Z0dadb� Z1dcdd� Z2dedf� Z3dgdh� Z4diS )jzT hook specifications for pytest plugins, invoked from main.py and builtin plugins. � )�HookspecMarker�pytestT)Zhistoricc C s dS )z�called at plugin registration time to allow adding new hooks via a call to
pluginmanager.add_hookspecs(module_or_class, prefix).N� )�
pluginmanagerr r �A/opt/alt/python37/lib/python3.7/site-packages/_pytest/hookspec.py�pytest_addhooks s r c C s dS )z�return dict of name->object to be made globally available in
the pytest namespace. This hook is called at plugin registration
time.
Nr r r r r �pytest_namespace s r c C s dS )z% a new pytest plugin got registered. Nr )Zplugin�managerr r r �pytest_plugin_registered s r
c C s dS )az 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>`.
:arg parser: To add command line options, call
:py:func:`parser.addoption(...) <_pytest.config.Parser.addoption>`.
To add ini-file values call :py:func:`parser.addini(...)
<_pytest.config.Parser.addini>`.
Options can later be accessed through the
:py:class:`config <_pytest.config.Config>` object, respectively:
- :py:func:`config.getoption(name) <_pytest.config.Config.getoption>` to
retrieve the value of a command line option.
- :py:func:`config.getini(name) <_pytest.config.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 or accessed
via (deprecated) ``pytest.config``.
Nr )�parserr r r �pytest_addoption s r c C s dS )z� called after command line options have been parsed
and all plugins and initial conftest files been loaded.
This hook is called for every plugin.
Nr )�configr r r �pytest_configure; s r )Zfirstresultc C s dS )z>return initialized config object, parsing the specified args. Nr )r �argsr r r �pytest_cmdline_parseH s r c C s dS )zB(deprecated) modify command line arguments before option parsing. Nr )r
r r r r �pytest_cmdline_preparseL s r c C s dS )z� called for performing the main command line action. The default
implementation will invoke the configure hooks and runtest_mainloop. Nr )r
r r r �pytest_cmdline_mainO s r c C s dS )z\ implements the loading of initial conftest files ahead
of command line option parsing. Nr )Zearly_configr r r r r �pytest_load_initial_conftestsT s r c C s dS )z8 perform the collection protocol for the given session. Nr )�sessionr r r �pytest_collection] s r c C s dS )z[ called after collection has been performed, may filter or re-order
the items in-place.Nr )r r
�itemsr r r �pytest_collection_modifyitemsa s r c C s dS )z: called after collection has been performed and modified. Nr )r r r r �pytest_collection_finishe s r c C s dS )z� return True to prevent considering this path for collection.
This hook is consulted for all files and directories prior to calling
more specific hooks.
Nr )�pathr
r r r �pytest_ignore_collecth s r c C s dS )z< called before traversing a directory for collection files. Nr )r �parentr r r �pytest_collect_directoryo s r c C s dS )zx return collection Node or None for the given path. Any new node
needs to have the specified ``parent`` as a parent.Nr )r r r r r �pytest_collect_files s r c C s dS )z collector starts collecting. Nr )� collectorr r r �pytest_collectstartx s r c C s dS )z we just collected a test item. Nr )�itemr r r �pytest_itemcollected{ s r! c C s dS )z collector finished collecting. Nr )�reportr r r �pytest_collectreport~ s r# c C s dS )z. called for test items deselected by keyword. Nr )r r r r �pytest_deselected� s r$ c C s dS )z= perform ``collector.collect()`` and return a CollectReport. Nr )r r r r �pytest_make_collect_report� s r% c C s dS )a return a Module collector or None for the given path.
This hook will be called for each matching test module path.
The pytest_collect_file hook needs to be used if you want to
create test modules for files that do not match as a test module.
Nr )r r r r r �pytest_pycollect_makemodule� s r&