Python Mock patch ldap3 search response

后端 未结 0 1851
眼角桃花
眼角桃花 2021-01-06 09:24

I am trying to mock the below function but I\'m not sure how to mock the Connection response:

def get_user_res(user, pass):
    res = None
    server = Server         


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