当然,对一个给定module的function,也能使用。 def test_patch_object_listdir(mocker): mock_listdir = mocker.patch.object(os, 'listdir ...
確定! 回上一頁