摘要: @pytest.fixture() 1、fixture命名不要以test开头 2、fixture是有返回值得,没有返回值默认为None 3、默念作用域是function 4、可以写在conftest.py,也不可以不写 测试文件.py class Testb(object): datas = ['z 阅读全文
posted @ 2021-12-02 13:44 呆呆蒙蒙 阅读(339) 评论(0) 推荐(1)