def test_two(self): x = "hello" assert hasattr(x, 'check'). 運行測試文件pytest dd.py即可. 5、如何編寫pytest測試樣例規範寫法:
確定! 回上一頁