pytest-snail
pytest-snail copied to clipboard
Deprecation warning: hookimpl uses old-style configuration options
Hi, I've noticed a deprecation warning. Here's the log:
/usr/local/lib/python3.8/site-packages/pytest_snail/plugin.py:21: PytestDeprecationWarning: The hookimpl Snail.pytest_collection_modifyitems uses old-style configuration options (marks or attributes).
Please use the pytest.hookimpl(tryfirst=True) decorator instead
to configure the hooks.
See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
@pytest.mark.tryfirst
Test session starts (platform: linux, Python 3.8.14, pytest 7.2.0, pytest-sugar 0.9.5)
django: settings: config.settings.test (from env)
Using --randomly-seed=843556788
rootdir: /app, configfile: pytest.ini
plugins: Faker-15.1.1, cov-4.0.0, django-4.5.2, tipsi-testing-1.3.4, tipsi-django-2.7.0, randomly-3.12.0, xdist-3.0.2, sugar-0.9.5, snail-0.1.0, django-test-plus-2.2.1, celery-4.4.7
gw0 C / gw1 C / gw2 C / gw3 Ccollecting ... /usr/local/lib/python3.8/site-packages/pytest_snail/plugin.py:21: PytestDeprecationWarning: The hookimpl Snail.pytest_collection_modifyitems uses old-style configuration options (marks or attributes).
Please use the pytest.hookimpl(tryfirst=True) decorator instead
to configure the hooks.
See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
@pytest.mark.tryfirst
/usr/local/lib/python3.8/site-packages/pytest_snail/plugin.py:21: PytestDeprecationWarning: The hookimpl Snail.pytest_collection_modifyitems uses old-style configuration options (marks or attributes).
Please use the pytest.hookimpl(tryfirst=True) decorator instead
to configure the hooks.
See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
@pytest.mark.tryfirst
/usr/local/lib/python3.8/site-packages/pytest_snail/plugin.py:21: PytestDeprecationWarning: The hookimpl Snail.pytest_collection_modifyitems uses old-style configuration options (marks or attributes).
Please use the pytest.hookimpl(tryfirst=True) decorator instead
to configure the hooks.
See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
@pytest.mark.tryfirst
gw0 ok / gw1 ok / gw2 C / gw3 ok/usr/local/lib/python3.8/site-packages/pytest_snail/plugin.py:21: PytestDeprecationWarning: The hookimpl Snail.pytest_collection_modifyitems uses old-style configuration options (marks or attributes).
Please use the pytest.hookimpl(tryfirst=True) decorator instead
to configure the hooks.
See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
@pytest.mark.tryfirst
Can one of the maintainers manage this? If not, I could try to fix it, though I've never developed a pytest plugin.