============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0
rootdir: /workspace/deprecated
configfile: setup.cfg
plugins: anyio-4.13.0, metadata-3.1.1, json-report-1.5.0, cov-7.1.0
collected 171 items

tests/test.py ..                                                         [  1%]
tests/test_deprecated.py .........................................       [ 25%]
tests/test_deprecated_class.py .......                                   [ 29%]
tests/test_deprecated_metaclass.py ....                                  [ 31%]
tests/test_sphinx.py ................................................... [ 61%]
...........................................                              [ 86%]
tests/test_sphinx_adapter.py ............                                [ 93%]
tests/test_sphinx_class.py .......                                       [ 97%]
tests/test_sphinx_metaclass.py ....                                      [100%]

=============================== warnings summary ===============================
tests/test_deprecated_class.py::test_simple_class_deprecation_with_args
  /workspace/deprecated/tests/test_deprecated_class.py:148: DeprecationWarning: Call to deprecated class MyClass. (kwargs class)
    MyClass(5)

tests/test_sphinx_class.py::test_isinstance_deprecated
  /workspace/deprecated/tests/test_sphinx_class.py:134: DeprecationWarning: Call to deprecated class DeprecatedChildCls. (some reason) -- Deprecated since version Y.Z.
    instance = DeprecatedChildCls()

tests/test_sphinx_class.py::test_isinstance_deprecated
  /workspace/deprecated/deprecated/classic.py:163: DeprecationWarning: Call to deprecated class DeprecatedCls. (some reason) -- Deprecated since version X.Y.
    return old_new1(cls, *args, **kwargs)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
--------------------------------- JSON report ----------------------------------
report saved to: report.json
======================= 171 passed, 3 warnings in 0.20s ========================