pytest的插件,为fixture提供工具

pytest-fixture-tools的Python项目详细描述


pytest fixture tools:pytest fixture tools插件

pytest-fixture-tools包是一个pytest插件,它为fixture提供各种工具

https://api.travis-ci.org/paylogic/pytest-fixture-tools.pnghttps://pypip.in/v/pytest-fixture-tools/badge.pnghttps://coveralls.io/repos/paylogic/pytest-fixture-tools/badge.png?branch=master

安装

pip install pytest-fixture-tools

使用量

如果您已经安装了pytest-fixture-toolsplugin,那么您可以使用它的一个命令

--show-fixture-duplicates-将收集所有设备,并为每个设备打印一个副本列表。

使用--show-fixture-duplicates,您可以使用--fixture name_of_fixture选项获取仅用于特定设备的重复项列表

py.test tests/ --show-fixture-duplicates --fixture order

输出可以如下所示:

========================================== test session starts ==========================================
platform linux2 -- Python 2.7.3 -- pytest-2.5.1 -- /home/batman/.virtualenvs/arkham-city/bin/python
Tests are shuffled using seed number 355495648184.
cachedir: /home/batman/.virtualenvs/arkham-city/.cache
plugins: fixture-tools, random, bdd-splinter, pep8, cov, contextfixture, bdd, xdist, instafail, cache
collected 2347 items / 1 skipped

------------------------------------------------- order -------------------------------------------------
tests/fixtures/order.py:30
tests/unit/api/conftest.py:261

接触

如果您有问题、错误报告、建议等,请在 那张GitHub project page

许可证

此软件是根据MIT license授权的

License

版权所有2013 Paylogic International

变更日志

1.0.0

  • 首次公开发行

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java通过调试找到日志文件路径?   如何修复这个java。使用selenium的lang.nullpointerException   java无法在规范上下文路径和用户代理提供的URI之间找到匹配项   java是单线程的spring集成通道吗?   java垃圾收集年轻一代扫描   java如何触发关闭Guava AbstractScheduledService?   TagLib端口或类似的Java音频标签读取器   查找最高考试范围的java问题   安卓如何在Kotlin中重写此方法(在Java中工作,但在Kotlin中不工作)   JPA/EclipseLink中的java锁定(Postgres 9.1)   java写入jar中的文件   java根据字符串的字节长度修剪字符串   如何在Java中将十进制时间戳转换为带尾随小数的日期   java查询超过Gerrit REST API中的500限制   使用基本顶点缓冲区和高度数组的opengl Java LWJGL VBO   java为什么会引发此异常以及如何从中恢复?   EclipseMars在Java8更新71之后不会启动   java将变量从表示层传递到逻辑层   使用PHP作为客户端向Java Web服务传递并使用jsessionid