1. pytest语法规范
文件名:必须以test_.py开头(以test.py结尾也可以)
类名: 必须以Testxxx形式书写,即以Test开头,不能带有init方法
方法名:必须以test开头
2.pytest设置:
开始写测试用例之前,先设置setting→tools→python intergrated tools

文件名:必须以test_.py开头(以test.py结尾也可以)
类名: 必须以Testxxx形式书写,即以Test开头,不能带有init方法
方法名:必须以test开头
开始写测试用例之前,先设置setting→tools→python intergrated tools
本文标题:pytest
本文链接:https://www.haomeiwen.com/subject/zonpictx.html
网友评论