Skip to content

Copy pytest node ID from editor

Copy pytest node ID from editor copies the pytest node ID for the test at the caret.

How to use it

Place the caret inside a pytest test function, then run BetterPy: Copy Pytest Node ID from Copy Special.

When it helps

Use this action when you want to rerun the current test from a terminal or share an exact pytest target without opening the test tree.

Notes

  • The action is available only inside pytest test functions.
  • The feature is gated by the Copy pytest node ID from editor setting under Settings | BetterPy | Testing (Pytest) | Test Tree & Navigation.