mock file open in python

前端 未结 2 1865
天命终不由人
天命终不由人 2021-02-19 06:34

I\'m trying to mock file open, and all of the examples show that I need to

@patch(\'open\', create=True) 

but I keep getting

         


        
2条回答
提交回复
热议问题