pytest使用筆記(一)

pytest使用筆記(一) 使用環境及預置條件:pycharm+win10+python3.6+pytest   1,創建示範的測試功能腳本,另存爲test_sample.py,代碼如下: # test_sample.py def func(x):   return x + 1 def test_answer():   assert func(3) == 5 def test_answer1
相關文章
相關標籤/搜索