摘要: 一、pytest与unittest对比 二、pytest基本操作 测试用例命名 1)文件命名: test_*.py或*_test.py命名 2)测试用例类以Test开头命名,方法以test开头命名3 前置后置 格式为: @pytest.fixture(scope="class") def init_ 阅读全文
posted @ 2019-12-13 16:56 spellbound 阅读(885) 评论(0) 推荐(0) 编辑