How to mock psycopg2's close connection?

前端 未结 0 891
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-05 11:46

I\'d like to test my DB class using psycopg2, but I met the problem - I have no idea how to test close() method. I\'ve tried some ideas and that\'s the last one below and it

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