pytest使用
摘要:
编写规范: • 测试⽂件以 test_ 开头(以 _test 结尾也可以)! • 测试类以 Test 开头,并且不能带有 __init__ ⽅法! • 测试函数以 test_ 开头 1)创建python文件 def add(x, y): return x + y def test_add(): pr 阅读全文
posted @ 2021-02-05 18:52 yxchun 阅读(190) 评论(0) 推荐(0)
浙公网安备 33010602011771号