随笔分类 -  pytest+request

实现接口测试
摘要:一、 setup 和 teardown 操作 ​ setup: 在测试函数或类之前执行, 完成准备工作,例如数据库连接、数 据测试、打开文件等。 ​ teardown: 在测试函数或类之后执行,完成收尾工作, 例如断开数据库 连接、回收内存资源。 二、编写规则 1. 测试文件以 test_ 开头或以 阅读全文
posted @ 2021-08-02 17:49 ShanCe-刘勇 阅读(208) 评论(0) 推荐(0)