pytest hook reference - pytest_cmdline_preparse deprecated
See original GitHub issuepytest documentation mentions that pytest_cmdline_preparse
hook will be deprecated.
Reference:
https://docs.pytest.org/en/latest/writing_plugins.html#_pytest.hookspec.pytest_cmdline_preparse
Question
What is the alternative to this hook moving forward?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I don’t know so I dug around a little, it seems that deprecation was introduced in db6f347db6d3f2db5aa2cf2d27630db5ab99d589 with the introduction of
pytest_load_initial_conftests
, so I would recommend using that instead.Unfortunately
pytest_load_initial_conftests
doesn’t work from insideconftest.py
, so it’s not an exact replacement.