Toggle pytest skip¶
Toggle pytest skip adds or removes pytest skip markers for tests, test classes, modules, and parameter values.
How to use it¶
Place the caret on a supported pytest target, then run BetterPy: Toggle pytest skip from the intention menu.
When it helps¶
Use this intention when triaging tests and you need to skip or unskip the current target without editing decorators manually.
Notes¶
- The intention supports functions, classes, module-level
pytestmark,pytest.param(...), and simple parameter values in parametrized tests. - The feature is gated by the Toggle pytest skip setting under Settings | BetterPy | Testing (Pytest) | Assertions & Test Editing.