
    [jC                       d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ h dZ	 ed          Z
 ed	          Z ed
          Z eed          Z ed          Z eed          Z ed          Z ed          Z eed          Z ed          Z ed          Z ed          Z ed          Z ed          ZddZdS )a  Deprecation messages and bits of code used elsewhere in the codebase that
is planned to be removed in the next pytest release.

Keeping it in a central location makes it easy to track what is deprecated and should
be removed when the time comes.

All constants defined in this module should be either instances of
:class:`PytestWarning`, or :class:`UnformattedWarning`
in case of warnings which need to format their messages.
    )annotations)warn)PytestDeprecationWarning)PytestRemovedIn10Warning)UnformattedWarning>   pytest_catchlogpytest_subtestspytest_capturelogpytest_faulthandlerzT@pytest.yield_fixture is deprecated.
Use @pytest.fixture instead; they are the same.av  Class-scoped fixture defined as instance method is deprecated.
Instance attributes set in this fixture will NOT be visible to test methods,
as each test gets a new instance while the fixture runs only once per class.
Use @classmethod decorator and set attributes on cls instead.
See https://docs.pytest.org/en/stable/deprecations.html#class-scoped-fixture-as-instance-methodz,A private pytest class or function was used.a  The hook{type} {fullname} uses old-style configuration options (marks or attributes).
Please use the pytest.hook{type}({hook_opts}) decorator instead
 to configure the hooks.
 See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markersaB  monkeypatch.syspath_prepend() called with pkg_resources legacy namespace packages detected.
Legacy namespace packages (using pkg_resources.declare_namespace) are deprecated.
Please use native namespace packages (PEP 420) instead.
See https://docs.pytest.org/en/stable/deprecations.html#monkeypatch-fixup-namespace-packageszPassing a non-Collection iterable to parametrize is deprecated.
Test: {nodeid}, argvalues type: {type_name}
Please convert to a list or tuple.
See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iteratorszpytest.console_main() is deprecated and will be removed in pytest 10.
It was never intended for programmatic use; use pytest.main() instead.
See https://docs.pytest.org/en/stable/deprecations.html#console-mainzconfig.inicfg is deprecated, use config.getini() to access configuration values instead.
See https://docs.pytest.org/en/stable/deprecations.html#config-inicfgaQ  Calling request.getfixturevalue("{argname}") during teardown is deprecated.
Please request the fixture before teardown begins, either by declaring it in the fixture signature or by calling request.getfixturevalue() before the fixture yields.
See https://docs.pytest.org/en/stable/deprecations.html#dynamic-fixture-request-during-teardownzThe --pastebin option is deprecated. The functionality is now available in an external plugin package, pytest-pastebin.
See https://docs.pytest.org/en/stable/deprecations.html#the-pastebin-optionzRPassing baseid to FixtureDef is deprecated. Pass node instead for fixture scoping.zYPassing nodeid to _register_fixture is deprecated. Pass node instead for fixture scoping.zFixtureDef.has_location is deprecated and will be removed in pytest 10. See https://docs.pytest.org/en/stable/deprecations.html#fixturedef-has-location-deprecatedziPassing nodeid string to parsefactories is deprecated. Use parsefactories(holder=obj, node=node) instead.ispytestboolreturnNonec                :    | st          t          d           d S d S )N   )
stacklevel)r   PRIVATE)r   s    V/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/_pytest/deprecated.pycheck_ispytestr      s-     $W######$ $    N)r   r   r   r   )__doc__
__future__r   warningsr   _pytest.warning_typesr   r   r   DEPRECATED_EXTERNAL_PLUGINSYIELD_FIXTURECLASS_FIXTURE_INSTANCE_METHODr   HOOK_LEGACY_MARKING%MONKEYPATCH_LEGACY_NAMESPACE_PACKAGES#PARAMETRIZE_NON_COLLECTION_ITERABLECONSOLE_MAINCONFIG_INICFG'FIXTURE_GETFIXTUREVALUE_DURING_TEARDOWNPASTEBINFIXTURE_BASEID_DEPRECATEDFIXTURE_NODEID_DEPRECATED"FIXTUREDEF_HAS_LOCATION_DEPRECATED PARSEFACTORIES_NODEID_DEPRECATEDr    r   r   <module>r*      s  	 	 # " " " " "       : : : : : : : : : : : : 4 4 4 4 4 4
    )(6 
 !9 8f! !  #
"#Q
R
R )(2   )A(@c) ) % '9&8T' ' # ('K  )(L 
 +=*<f+ + ' $#R 2 54X   54-  
 &>%=a& & "
 $<#;9$ $  $ $ $ $ $ $r   