pytest.main(“模塊.py”)【運行指定模塊下,運行所有test開頭的類和測試用例】 ... import pytest class Test(): def test1(self): print("這是測試1") ...
確定! 回上一頁