Skip to content

PytestDeprecationWarning: The hookimpl pytest_addhooks uses old-style configuration options #2420

Open
@johnkangw

Description

@johnkangw

Describe your context
Please provide us your environment, so we can easily reproduce the issue.

  • replace the result of pip list | grep dash below
dash                      2.8.1
dash-ag-grid              2.0.0a1
dash-auth                 1.4.1
dash-bootstrap-components 1.2.0
dash-core-components      2.0.0
dash-design-kit           1.6.7
dash-enterprise-auth      0.1.0
dash-html-components      2.0.0
dash-iconify              0.1.2
dash-loading-spinners     1.0.0
dash-mantine-components   0.10.0
dash-snapshots            2.2.2
dash-table                5.0.0
dash-user-analytics       0.0.2

Describe the bug

Pytest deprecation warning from the dash\testing\plugin.py

============================== warnings summary ===============================
.....conda\envs\Capacity_venv\lib\site-packages\dash\testing\plugin.py:83
C:\Users\JKANG1.conda\envs\Capacity_venv\lib\site-packages\dash\testing\plugin.py:83: PytestDeprecationWarning: The hookimpl pytest_addhooks 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
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

Expected behavior

No deprecation warning

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething brokentestingautomated tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions