unittest 中集成了mock,可以用来模拟一些函数返回,未实现的接口等。 unittest导入mock对象: from Unittest import mock. 1|3pytest:. pytest ...
確定! 回上一頁