<3>pytest:命名规范

文件:test_开头、_test结尾
类名:Test 开头
方法/函数:test_开头

pytest运行时,会自动查找符合命名规范的代码,执行用例

posted @ 2021-12-05 01:47  漓白白"  阅读(46)  评论(0编辑  收藏  举报