Mocking test in Django not working when running all in TestCase but works well one by one

后端 未结 1 1123
不知归路
不知归路 2021-01-13 00:26

I\'m using python mock for patching some functions and classes when testing views in Django.

If I run each test independently, all test works. But when I run the Tes

相关标签:
1条回答
  • 2021-01-13 00:41

    I had the same problem. You're probably pointing the wrong way.

    Check this link. It helped me.

    0 讨论(0)
提交回复
热议问题