How to mock a method within an async unit test?

后端 未结 0 1935
闹比i
闹比i 2021-02-04 07:31

I have a class called database.py with a function called generate_token(). I would like to mock it and return a fixed value 321. So that I can see that the method

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