Commit 47cea20f9ed64454d2320657ff5c2b8b7d576850
1 parent
13dfc4e0
Add prepare_contract_api_wrapper function
Showing
2 changed files
with
3 additions
and
3 deletions
| ... | ... | @@ -57,7 +57,7 @@ Library openprocurement_client.utils |
| 57 | 57 | ${edr_wrapper}= prepare_edr_wrapper ${EDR_HOST_URL} ${EDR_VERSION} ${USERS.users['${username}'].auth_edr[0]} ${USERS.users['${username}'].auth_edr[1]} |
| 58 | 58 | Set To Dictionary ${USERS.users['${username}']} edr_client=${edr_wrapper} |
| 59 | 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 | 61 | Set To Dictionary ${USERS.users['${username}']} contracting_client=${contract_api_wrapper} |
| 62 | 62 | Set To Dictionary ${USERS.users['${username}']} contract_access_token=${EMPTY} |
| 63 | 63 | ${contracts_id_map}= Create Dictionary | ... | ... |
| ... | ... | @@ -50,8 +50,8 @@ class ContractingStableClient(ContractingClient): |
| 50 | 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 | 57 | class StableEDRClient(EDRClient): | ... | ... |
Please
register
or
login
to post a comment