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.
Release files for pytest-disable-plugin 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest-disable-plugin-0.1.2.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_disable_plugin-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / pytest-disable-plugin-0.1.2.tar.gz
| Download URL | pytest-disable-plugin-0.1.2.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c6c7c56dc04bbdb13e019cc6251c06feec30ef0d349e391c462360e491cea88
|
|
BLAKE2b-256 checksum How to use checksums |
d43af2873c294501049392200eb274fdff7e710c6d85737d18e2ed862b592cc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Release files / pytest_disable_plugin-0.1.2-py3-none-any.whl
| Download URL | pytest_disable_plugin-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
995692b317cbcc140b2a3682bd2550aa3e53a8b38bbf5b376872ce82354a2d54
|
|
BLAKE2b-256 checksum How to use checksums |
086d6c6938755af86bc4af26760ef7ac3c8b8664a258758f3a509f79b8e09a88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|