pytest-enabler

raw JSON →
3.4.0 verified Sat May 09 auth: no python

A pytest plugin that enables installed but otherwise disabled pytest plugins (e.g., those behind namespace packages or with lazy entry points). Current version 3.4.0, requires Python >=3.9. Released irregularly; part of the jaraco suite.

pip install pytest-enabler
error ModuleNotFoundError: No module named 'pytest_enabler'
cause Trying to import pytest_enabler explicitly in test code.
fix
Remove the import; pytest-enabler is a plugin, not a regular library. Just install it.
gotcha pytest-enabler works automatically; there's no need to import it or register it in conftest.py. Attempting to import it directly does nothing special.
fix Just install it; pytest finds it as a plugin.
breaking Version 3.0.0 dropped support for Python 3.7 and 3.8. Requires Python >=3.9.
fix Upgrade Python to 3.9+ or stick with pytest-enabler <3.0.0.

After installation, pytest-enabler automatically enables any installed pytest plugins that may be disabled (e.g., by namespace packaging). No manual activation needed.

# pytest-enabler is a pytest plugin; simply install it and pytest will discover it.
# No explicit import required in your test code.
# To verify it's active, run:
# pytest --trace-config | grep enabler