在定義測試用例中,將mock的multiply()函式(物件)重新命名為mock_multiply物件。 """ @patch("function.multiply") def test_add_and_multiply(self, ...
確定! 回上一頁