这里的mock和unittest的mock基本上都是一样的,唯一的区别在于pytest.mock需要导入需要mock对象的详细路径。 复制代码. # weateher_r.py class ...
確定! 回上一頁