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

后端 未结 0 1122
有刺的猬
有刺的猬 2021-01-01 13:21

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

my method looks like this:



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