pytest patch.object AssertionError from assert_called_once_with: assertion expects instance of mocked class as first arg

后端 未结 0 1943
心在旅途
心在旅途 2021-01-01 13:13

I am learning unittest.mock and having trouble with using mock.patch.object as a decorator.

my method looks like this:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题