今天在用pytest 寫一個測試程式,用到了一個fixture 類似像下面這樣: ... def test_verify(ca): if ca is None: pytest.skip() assert ca.verify() ...
確定! 回上一頁