Ignoring a Django signal with a test mock

后端 未结 0 445
被撕碎了的回忆
被撕碎了的回忆 2020-12-19 00:22

I have a function setup to hook the pre_delete on a model and I want to ignore this during testing using unittest.mock.patch, but this only works w

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