网站介绍:文章浏览阅读1.8k次,点赞2次,收藏10次。我们都知道pytest和unittest是兼容的,但是它也有不兼容的地方,比如ddt数据驱动,测试夹具fixtures(即setup、teardown)这些功能在pytest中都不能使用了,因为pytest已经不再继承unittest了。不使用ddt数据驱动那pytest是如何实现参数化的呢?答案就是mark里自带的一个参数化标签。..._pytest parametrize
- 链接地址:https://blog.csdn.net/ifling99/article/details/126236312
- 链接标题:pytest之parametrize参数化_pytest parametrize-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:2625
- 网站标签:pytest parametrize