跳转到主要内容

pytest-monkeytype:从您的pytest测试中生成Monkeytype注释。

项目描述

pytest-monkeytype

Build Status License PyPI Python PyPI Version PyPI Status PyPI Wheel

MonkeyType作为一个pytest插件。

pip install pytest-monkeytype

# Generate annotations by running your pytest tests as usual:
py.test --monkeytype-output=./monkeytype.sqlite3

# Get a listing of modules annotated by monkeytype
monkeytype list-modules

# Generate a stub file for those annotations using monkeytype:
monkeytype stub some.module

# Apply these annotations directly
monkeytype apply some.module

此项目受到pytest-annotate的启发

项目详情


下载文件

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

源分布

pytest-monkeytype-1.1.0.tar.gz (3.5 kB 查看哈希)

上传时间:

由以下支持