Page MenuHomeFreeBSD

pytest: Silence deprecation warning
ClosedPublic

Authored by jlduran on Dec 27 2022, 9:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 17, 1:27 PM
Unknown Object (File)
Sun, Jan 12, 6:15 PM
Unknown Object (File)
Oct 29 2024, 4:55 PM
Unknown Object (File)
Sep 27 2024, 4:48 PM
Unknown Object (File)
Sep 21 2024, 10:49 PM
Unknown Object (File)
Sep 21 2024, 2:29 PM
Unknown Object (File)
Sep 20 2024, 4:49 PM
Unknown Object (File)
Sep 18 2024, 3:05 AM

Details

Summary

Before pluggy, pytest’s plugin library, was its own package and had a clear API, pytest just used pytest.mark to configure hooks.

The pytest.hookimpl() and pytest.hookspec() decorators have been available since years and should be used instead.

Reference: https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped