每次测试禁用插件
pytest-disable-plugin的Python项目详细描述
每次测试禁用插件
这个pytest插件是用Cookiecutter和@hackebrot的cookiecutter-pytest-plugin模板生成的。
功能
- 禁用特定测试的pytest插件。
要求
- pytest
用法
importpytest@pytest.mark.disable_plugin("some_plugin_name")deftest_something():# This test will unload the plugin during setup and reload it afterwards.assertf()==1deftest_something_else():# This test will use the plugin as normal.assertf()==2
贡献
我们非常欢迎您的贡献。测试可以用tox运行,请确保 在提交请求之前,覆盖范围至少保持不变。
许可证
“pytest disable plugin”是根据MIT许可证的条款发布的免费开源软件
问题
如果您遇到任何问题,请file an issue连同详细说明。