跳转到主要内容

用警告注解标记测试已测试弃用功能。

项目描述

pytest-deprecate

用警告注解标记测试已测试弃用功能。

Requirement Status Coverage Status Version

Commits since latest release Supported versions Supported implementations

安装

pip install pytest-deprecate

用法

@pytest.mark.deprecated("This feature will be dropped in 2.7")
def test_old_feature():
    assert True

输出

=========================================================================================================================== warnings summary ============================================================================================================================
example/test_file.py::test_dummy
  /Users/mikailkocak/Development/pytest-deprecate/example/test_file.py:4: UserWarning: test_file:test_dummy is testing a deprecated feature: This feature will be removing in 2.7
    @pytest.mark.deprecated("This feature will be removing in 2.7")

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定要选择哪个,请了解更多关于安装软件包的信息。

源分布

pytest-deprecate-1.0.2.tar.gz (3.3 kB 查看哈希值)

上传时间

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面