How to unit test a function when it is calling a member function of one of the argument

后端 未结 0 918
你的背包
你的背包 2021-01-21 11:26

I want to unit test the following function in Python:

def get_params(env, secret_fetcher):
    try:
        url = env[\'API_URL\']
    except KeyError:
        ra         


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