Disable plugins per test
Project description
=====================
pytest-disable-plugin
=====================
.. image:: https://img.shields.io/pypi/v/pytest-disable-plugin.svg
:target: https://pypi.org/project/pytest-disable-plugin
:alt: PyPI version
.. image:: https://img.shields.io/pypi/pyversions/pytest-disable-plugin.svg
:target: https://pypi.org/project/pytest-disable-plugin
:alt: Python versions
.. image:: https://travis-ci.org/username/pytest-disable-plugin.svg?branch=master
:target: https://travis-ci.org/username/pytest-disable-plugin
:alt: See Build Status on Travis CI
.. image:: https://ci.appveyor.com/api/projects/status/github/username/pytest-disable-plugin?branch=master
:target: https://ci.appveyor.com/project/username/pytest-disable-plugin/branch/master
: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.
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
-----
```python
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.
.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter
.. _`@hackebrot`: https://github.com/hackebrot
.. _`MIT`: http://opensource.org/licenses/MIT
.. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause
.. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt
.. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0
.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin
.. _`file an issue`: https://github.com/username/pytest-disable-plugin/issues
.. _`pytest`: https://github.com/pytest-dev/pytest
.. _`tox`: https://tox.readthedocs.io/en/latest/
.. _`pip`: https://pypi.org/project/pip/
.. _`PyPI`: https://pypi.org/project
pytest-disable-plugin
=====================
.. image:: https://img.shields.io/pypi/v/pytest-disable-plugin.svg
:target: https://pypi.org/project/pytest-disable-plugin
:alt: PyPI version
.. image:: https://img.shields.io/pypi/pyversions/pytest-disable-plugin.svg
:target: https://pypi.org/project/pytest-disable-plugin
:alt: Python versions
.. image:: https://travis-ci.org/username/pytest-disable-plugin.svg?branch=master
:target: https://travis-ci.org/username/pytest-disable-plugin
:alt: See Build Status on Travis CI
.. image:: https://ci.appveyor.com/api/projects/status/github/username/pytest-disable-plugin?branch=master
:target: https://ci.appveyor.com/project/username/pytest-disable-plugin/branch/master
: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.
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
-----
```python
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.
.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter
.. _`@hackebrot`: https://github.com/hackebrot
.. _`MIT`: http://opensource.org/licenses/MIT
.. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause
.. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt
.. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0
.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin
.. _`file an issue`: https://github.com/username/pytest-disable-plugin/issues
.. _`pytest`: https://github.com/pytest-dev/pytest
.. _`tox`: https://tox.readthedocs.io/en/latest/
.. _`pip`: https://pypi.org/project/pip/
.. _`PyPI`: https://pypi.org/project
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pytest-disable-plugin-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88cbfb0c5213d52714f08ff329fd76595a60cd28fa6a6c9d1a996b329207d66c |
|
MD5 | b11954ba6eb4c4942f7c9397b28a9cc5 |
|
BLAKE2b-256 | dd44e1c188fb145d647a77ac58ab104ecf30e75f44919b1b1a227f5ba384f1f6 |
Close
Hashes for pytest_disable_plugin-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a9a8cc7bfcd01e9816d5e31fc299323d062dc493fcd42cbfdb5522e8ba4a8e2 |
|
MD5 | ca8820c6679c71687b109bc26b7686f3 |
|
BLAKE2b-256 | 9c5929d55caa01869b67ee2544ae8e8b1f0cfcf770358f5d209a82bcb0331f94 |