pytest的一个简单的图像diff插件
pytest-Inomal的Python项目详细描述
pytest inomaly
==
[![生成状态](https://ci.digitaloctave.com/api/badges/oly/pytest inomaly/status.svg)(https://ci.digitaloctave.com/oly/pytest inomaly)
pytest的一个简单的图像diff插件目前提供了两种新方法,使用full测试与图像相关的代码并确保结果不会意外更改。
-pytest.idiff-返回正确或错误
-pytest.idiff_variance-返回两个图像之间的差异
requirements
----
需要scipy和pytest计算差异。
-scipy
-pytest
installation
-
` pypi`懔:
$pip安装pytest inomaly
usage
---
assert images是相同的。
assert idiff(path_to懔first懔image,path懔to懔second懔image)是正确的
assert idiff(path懔to懔first懔image,path_to懔second懔image,tolerance=0.1)是true
与上述两种方法相同,但将以值的形式返回差异,而不是true或false。
assert idiff懔tolerance(path懔to懔second懔image,path懔to懔second懔image,tolerance=0.1)==3.14
可以使用“tox”运行测试,请确保在提交请求之前覆盖率至少保持不变。
license
----
请“提交问题”和详细说明。
==
[![生成状态](https://ci.digitaloctave.com/api/badges/oly/pytest inomaly/status.svg)(https://ci.digitaloctave.com/oly/pytest inomaly)
pytest的一个简单的图像diff插件目前提供了两种新方法,使用full测试与图像相关的代码并确保结果不会意外更改。
-pytest.idiff-返回正确或错误
-pytest.idiff_variance-返回两个图像之间的差异
requirements
----
需要scipy和pytest计算差异。
-scipy
-pytest
installation
-
` pypi`懔:
$pip安装pytest inomaly
usage
---
assert images是相同的。
assert idiff(path_to懔first懔image,path懔to懔second懔image)是正确的
assert idiff(path懔to懔first懔image,path_to懔second懔image,tolerance=0.1)是true
与上述两种方法相同,但将以值的形式返回差异,而不是true或false。
assert idiff懔tolerance(path懔to懔second懔image,path懔to懔second懔image,tolerance=0.1)==3.14
可以使用“tox”运行测试,请确保在提交请求之前覆盖率至少保持不变。
license
----
请“提交问题”和详细说明。