Commit 47cea20f9ed64454d2320657ff5c2b8b7d576850

Authored by OrysiaDrabych
1 parent 13dfc4e0

Add prepare_contract_api_wrapper function

@@ -57,7 +57,7 @@ Library openprocurement_client.utils @@ -57,7 +57,7 @@ Library openprocurement_client.utils
57 ${edr_wrapper}= prepare_edr_wrapper ${EDR_HOST_URL} ${EDR_VERSION} ${USERS.users['${username}'].auth_edr[0]} ${USERS.users['${username}'].auth_edr[1]} 57 ${edr_wrapper}= prepare_edr_wrapper ${EDR_HOST_URL} ${EDR_VERSION} ${USERS.users['${username}'].auth_edr[0]} ${USERS.users['${username}'].auth_edr[1]}
58 Set To Dictionary ${USERS.users['${username}']} edr_client=${edr_wrapper} 58 Set To Dictionary ${USERS.users['${username}']} edr_client=${edr_wrapper}
59 #Variables for contracting_management module 59 #Variables for contracting_management module
60 - ${contract_api_wrapper}= prepare_contract_api_wrapper ${USERS.users['${username}'].api_key} ${api_host_url} ${api_version} 60 + ${contract_api_wrapper}= prepare_contract_api_wrapper ${USERS.users['${username}'].api_key} ${api_host_url} ${api_version} ${ds_api_wraper}
61 Set To Dictionary ${USERS.users['${username}']} contracting_client=${contract_api_wrapper} 61 Set To Dictionary ${USERS.users['${username}']} contracting_client=${contract_api_wrapper}
62 Set To Dictionary ${USERS.users['${username}']} contract_access_token=${EMPTY} 62 Set To Dictionary ${USERS.users['${username}']} contract_access_token=${EMPTY}
63 ${contracts_id_map}= Create Dictionary 63 ${contracts_id_map}= Create Dictionary
@@ -50,8 +50,8 @@ class ContractingStableClient(ContractingClient): @@ -50,8 +50,8 @@ class ContractingStableClient(ContractingClient):
50 return super(ContractingStableClient, self).request(*args, **kwargs) 50 return super(ContractingStableClient, self).request(*args, **kwargs)
51 51
52 52
53 -def prepare_contract_api_wrapper(key, host_url, api_version):  
54 - return ContractingStableClient(key, host_url, api_version) 53 +def prepare_contract_api_wrapper(key, host_url, api_version, ds_client=None):
  54 + return ContractingStableClient(key, host_url, api_version, ds_client=ds_client)
55 55
56 56
57 class StableEDRClient(EDRClient): 57 class StableEDRClient(EDRClient):
Please register or login to post a comment