Commit 0e26d480e24a43298384178d00daffc2c1b05113

Authored by ivanka12
1 parent 023b1b4c

update prepare_plan_api_wrapper

@@ -59,7 +59,7 @@ Library openprocurement_client.utils @@ -59,7 +59,7 @@ Library openprocurement_client.utils
59 # ${ds_api_wraper}= set variable ${None} 59 # ${ds_api_wraper}= set variable ${None}
60 ${ds_api_wraper}= prepare_ds_api_wrapper ${DS_HOST_URL} ${auth_ds} 60 ${ds_api_wraper}= prepare_ds_api_wrapper ${DS_HOST_URL} ${auth_ds}
61 ${api_wrapper}= Run Keyword If '${RESOURCE}' == 'plans' 61 ${api_wrapper}= Run Keyword If '${RESOURCE}' == 'plans'
62 - ... prepare_plan_api_wrapper ${USERS.users['${username}'].api_key} ${API_HOST_URL} ${API_VERSION} 62 + ... prepare_plan_api_wrapper ${USERS.users['${username}'].api_key} PLANS ${API_HOST_URL} ${API_VERSION}
63 ... ELSE prepare_api_wrapper ${USERS.users['${username}'].api_key} ${RESOURCE} ${API_HOST_URL} ${API_VERSION} ${ds_api_wraper} 63 ... ELSE prepare_api_wrapper ${USERS.users['${username}'].api_key} ${RESOURCE} ${API_HOST_URL} ${API_VERSION} ${ds_api_wraper}
64 ${dasu_api_wraper}= prepare_dasu_api_wrapper ${USERS.users['${username}'].dasu_api_key} ${DASU_RESOURCE} ${DASU_API_HOST_URL} ${DASU_API_VERSION} ${ds_api_wraper} 64 ${dasu_api_wraper}= prepare_dasu_api_wrapper ${USERS.users['${username}'].dasu_api_key} ${DASU_RESOURCE} ${DASU_API_HOST_URL} ${DASU_API_VERSION} ${ds_api_wraper}
65 Set To Dictionary ${USERS.users['${username}']} client=${api_wrapper} 65 Set To Dictionary ${USERS.users['${username}']} client=${api_wrapper}
@@ -157,8 +157,8 @@ class StableClient_plan(PlansClient): @@ -157,8 +157,8 @@ class StableClient_plan(PlansClient):
157 return super(StableClient_plan, self).request(*args, **kwargs) 157 return super(StableClient_plan, self).request(*args, **kwargs)
158 158
159 159
160 -def prepare_plan_api_wrapper(key, host_url, api_version):  
161 - return StableClient_plan(key, host_url, api_version) 160 +def prepare_plan_api_wrapper(key, resource, host_url, api_version):
  161 + return StableClient_plan(key, resource, host_url, api_version)
162 162
163 163
164 class StableClient_dasu(DasuClient): 164 class StableClient_dasu(DasuClient):
Please register or login to post a comment