--- id: pytest-helpers-namespace version: "2021.12.29" license: Apache Software License 2.0 license_treatment: permissive maintenance: abandoned --- # pytest-helpers-namespace — Pytest Helpers Namespace Plugin License: permissive · Maintenance: abandoned · Downloads: 230.6K/mo ## What it is and what it does pytest-helpers-namespace is a pytest plugin that creates a shared namespace accessible via pytest.helpers, allowing you to register helper functions in conftest.py and call them directly from test files without importing them. This reduces boilerplate in test files and centralizes helper definitions. The plugin supports nested namespaces, so you can organize helpers hierarchically (e.g., pytest.helpers.can.haz.foo). The package depends only on pytest and installs with low friction. However, it has been abandoned since late 2022 with no active maintenance. The last release was 2021-12-29, meaning it may not be tested or compatible with recent pytest versions or Python releases beyond those listed in its classifiers. Use it for: - Centralize test utilities in conftest.py and access them via pytest.helpers without import statements in every test file. - Organize related helper functions into nested namespaces (e.g., pytest.helpers.database.connect) for better code structure. - Share common test setup functions across a large test suite without polluting the global namespace or test file imports. - Reduce test file boilerplate by making frequently used helper functions available through a single pytest.helpers entry point. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides a pytest namespace for registering and accessing helper functions in conftest.py without explicit imports in test files. Yes, if you are using an older pytest version and your test suite is stable. The plugin is simple, has no external dependencies beyond pytest, and solves a real organizational problem. However, do not use it in new projects or if you need active maintenance—the package is abandoned and may break with future pytest releases. Consider alternatives or inline helpers in conftest.py for new work. ## Install pip install pytest-helpers-namespace uv add pytest-helpers-namespace poetry add pytest-helpers-namespace ## Installing pytest-helpers-namespace Before you install: Low friction install with a single runtime dependency (pytest). However, the package is abandoned—last release was 2021-12-29 and last commit 2022-10-10. No active maintenance means bugs or compatibility issues with newer pytest versions will not be addressed. License in practice: Licensed under Apache Software License 2.0, a permissive open-source license. You may use, modify, and distribute this package freely in commercial or private projects with minimal restrictions. Quickstart: pip install pytest-helpers-namespace # In conftest.py: import pytest @pytest.helpers.register def my_helper(value): return value # In test file: def test_example(): assert pytest.helpers.my_helper(True) is True Verify before relying: - Compatibility with pytest versions released after 2022-10-10 is unknown and untested. - Whether nested helper namespaces (pytest.helpers.can.haz) work reliably with current pytest is unverified. ## Package facts - License: Apache Software License 2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: abandoned - Downloads: 230.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags pytest helper functions namespace, pytest conftest helpers, pytest shared test utilities, pytest plugin helpers, pytest test fixtures helpers, pytest-plugin, test-helpers, abandoned [View on SkillFed](https://skillfed.io/packages/pytest-helpers-namespace) · [View on PyPI](https://pypi.org/project/pytest-helpers-namespace/)