pytest-disable-plugin 0.1.2

Creator: bradpython12

Last updated:

Add to Cart

Description:

pytestdisableplugin 0.1.2

Disable plugins per test

This pytest plugin was generated with Cookiecutter along with @hackebrot’s cookiecutter-pytest-plugin template.

Features

Disable pytest plugins for specific tests.



Requirements

pytest



Installation
You can install “pytest-disable-plugin” via pip from PyPI:
$ pip install pytest-disable-plugin


Usage
import pytest

@pytest.mark.disable_plugin("some_plugin_name")
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


Contributing
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.


License
Distributed under the terms of the MIT license, “pytest-disable-plugin” is free and open source software


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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.