A pytest plugin that provides a hierarchical dict of session.items, enabling easy access to test items by node ID or custom keys. Current version 1.1.2, requires Python >=3.11. Released as needed.
pip install pytest-item-dictVerified import paths — ran on the pinned version, not inferred.
Collect tests and get hierarchical dict.
Ensure pytest session has run before calling item_dict().
Use node IDs as keys or extend the plugin for custom keys.