The `path` is deprecated since pytest 7 and so it should not be used. https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path