How to mock psycopg2 connection methods?

前端 未结 0 537
悲哀的现实
悲哀的现实 2020-12-08 06:14

I would like to verify that the commit() and close() methods are being called.

I have the following class:

class ClosingConnection:
    def __init__(se         


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