訪問mock對象上不存在的屬性或方法時,將會拋出屬性錯誤。 from unittest import mock class SomeClass: def new_method(self) ...
確定! 回上一頁