Python: @patch() doesn't produce expected behavior inside a decorator

前端 未结 0 340
情书的邮戳
情书的邮戳 2020-12-29 00:28

I\'m testing a view function in Flask that requires authentication. I want to remove the effect of authentication, and so I wrote a test like so:

    @patch(\         


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