摘要: Pytest 用例编写规范 被测试的文件,必须以 test_ 开头或 _test 结尾; Pytest 运行的时候,会寻找 test_ 或 _test 的文件,把他们当做测试文件进行测试; 测试的类名,需要以 Test 开头,并且不能有 init 函数,不然会触发警告:ytestCollection 阅读全文
posted @ 2025-12-26 19:04 文佳+ 阅读(3) 评论(0) 推荐(0)
摘要: if name == 'main': print("Hello World!") 阅读全文
posted @ 2025-12-26 18:03 文佳+ 阅读(4) 评论(0) 推荐(0)