pytest

作者: 星辰_1c3b | 来源:发表于2019-11-17 17:13 被阅读0次

1. pytest语法规范

文件名:必须以test_.py开头(以test.py结尾也可以)
类名: 必须以Testxxx形式书写,即以Test开头,不能带有init方法
方法名:必须以test
开头

2.pytest设置:

开始写测试用例之前,先设置setting→tools→python intergrated tools


image.png

相关文章

网友评论

      本文标题:pytest

      本文链接:https://www.haomeiwen.com/subject/zonpictx.html