Skip to main content

Disable plugins per test

Project description


.. image::
:alt: PyPI version

.. image::
:alt: Python versions

.. image::
:alt: See Build Status on Travis CI

.. image::
:alt: See Build Status on AppVeyor

Disable plugins per test


This `pytest`_ plugin was generated with `Cookiecutter`_ along with `@hackebrot`_'s `cookiecutter-pytest-plugin`_ template.


* Disable pytest plugins for specific tests.


* pytest


You can install "pytest-disable-plugin" via `pip`_ from `PyPI`_::

$ pip install pytest-disable-plugin


import pytest

def test_something():
# This test will unload the plugin during setup and reload it afterwards.
assert f() == 1

def test_something_else():
# This test will use the plugin as normal.
assert f() == 2

Contributions are very welcome. Tests can be run with `tox`_, please ensure
the coverage at least stays the same before you submit a pull request.


Distributed under the terms of the `MIT`_ license, "pytest-disable-plugin" is free and open source software


If you encounter any problems, please `file an issue`_ along with a detailed description.

.. _`Cookiecutter`:
.. _`@hackebrot`:
.. _`MIT`:
.. _`BSD-3`:
.. _`GNU GPL v3.0`:
.. _`Apache Software License 2.0`:
.. _`cookiecutter-pytest-plugin`:
.. _`file an issue`:
.. _`pytest`:
.. _`tox`:
.. _`pip`:
.. _`PyPI`:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-disable-plugin-0.1.1.tar.gz (3.6 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page