Warning in pytest-cov
Steps to reproduce
Run CI.
Expected behavior
No warnings.
Current behavior
Log
$ poetry run pytest --cov latex_image_generator tests
============================= test session starts ==============================
platform linux -- Python 3.10.10, pytest-7.2.2, pluggy-1.0.0
rootdir: /builds/MusicScience37Projects/tools/latex-image-generator
plugins: cov-3.0.0, asyncio-0.19.0
asyncio: mode=strict
collected 14 items
tests/execute_command_test.py ..... [ 35%]
tests/generate_image_test.py ... [ 57%]
tests/main_test.py ...... [100%]
=============================== warnings summary ===============================
.venv/lib/python3.10/site-packages/pytest_cov/plugin.py:256
/builds/MusicScience37Projects/tools/latex-image-generator/.venv/lib/python3.10/site-packages/pytest_cov/plugin.py:256: PytestDeprecationWarning: The hookimpl CovPlugin.pytest_configure_node uses old-style configuration options (marks or attributes).
Please use the pytest.hookimpl(optionalhook=True) decorator instead
to configure the hooks.
See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
def pytest_configure_node(self, node):
.venv/lib/python3.10/site-packages/pytest_cov/plugin.py:265
/builds/MusicScience37Projects/tools/latex-image-generator/.venv/lib/python3.10/site-packages/pytest_cov/plugin.py:265: PytestDeprecationWarning: The hookimpl CovPlugin.pytest_testnodedown uses old-style configuration options (marks or attributes).
Please use the pytest.hookimpl(optionalhook=True) decorator instead
to configure the hooks.
See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
def pytest_testnodedown(self, node, error):
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
---------- coverage: platform linux, python 3.10.10-final-0 ----------
Name Stmts Miss Cover
--------------------------------------------------------------
latex_image_generator/__init__.py 0 0 100%
latex_image_generator/config.py 15 0 100%
latex_image_generator/execute_command.py 26 0 100%
latex_image_generator/generate_image.py 28 0 100%
latex_image_generator/main.py 7 0 100%
--------------------------------------------------------------
TOTAL 76 0 100%
======================== 14 passed, 2 warnings in 7.37s ========================
$ poetry run coverage report
Name Stmts Miss Cover
--------------------------------------------------------------
latex_image_generator/__init__.py 0 0 100%
latex_image_generator/config.py 15 0 100%
latex_image_generator/execute_command.py 26 0 100%
latex_image_generator/generate_image.py 28 0 100%
latex_image_generator/main.py 7 0 100%
--------------------------------------------------------------
TOTAL 76 0 100%