pytest-enabler 2.0.0


pip install pytest-enabler==2.0.0

Project Links

Meta
Author: Jason R. Coombs
Requires Python: >=3.7

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Programming Language
  • Python :: 3
  • Python :: 3 :: Only

Framework
  • Pytest
https://img.shields.io/pypi/v/pytest-enabler.svg https://img.shields.io/pypi/pyversions/pytest-enabler.svg tests Code style: Black https://img.shields.io/badge/skeleton-2022-informational

The ‘enabler’ plugin allows configuration of plugins if present, but omits the settings if the plugin is not present. For example, to configure black to be enabled if the plugin is present, but not when it is not, add the following to your pyproject.toml:

[tool.pytest-enabler.black]
addopts = "--black"

Then, to temporarily disable a plugin, use pytest’s built-in support for disabling a plugin:

pytest -p no:black

Known to work with the following plugins:

  • pytest-black

  • pytest-cov

  • pytest-flake8

  • pytest-mypy

  • pytest-xdist

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
toml
jaraco.functools
jaraco.context