Showing
5 changed files
with
6 additions
and
4 deletions
| @@ -58,7 +58,7 @@ gh_push = git@github.com: | @@ -58,7 +58,7 @@ gh_push = git@github.com: | ||
| 58 | 58 | ||
| 59 | [sources] | 59 | [sources] |
| 60 | barbecue = git ${remotes:gh}openprocurement/barbecue.git | 60 | barbecue = git ${remotes:gh}openprocurement/barbecue.git |
| 61 | -openprocurement_client = git ${remotes:gh}openprocurement/openprocurement.client.python.git | 61 | +openprocurement_client = git ${remotes:gh}openprocurement/openprocurement.client.python.git branch=use_requests |
| 62 | robot_tests.broker.alltenders = git ${remotes:gh}openprocurement/robot_tests.broker.alltenders.git | 62 | robot_tests.broker.alltenders = git ${remotes:gh}openprocurement/robot_tests.broker.alltenders.git |
| 63 | robot_tests.broker.aladdin = git ${remotes:gh}openprocurement/robot_tests.broker.aladdin.git | 63 | robot_tests.broker.aladdin = git ${remotes:gh}openprocurement/robot_tests.broker.aladdin.git |
| 64 | robot_tests.broker.dzo = git ${remotes:gh}openprocurement/robot_tests.broker.dzo.git | 64 | robot_tests.broker.dzo = git ${remotes:gh}openprocurement/robot_tests.broker.dzo.git |
| @@ -16,6 +16,7 @@ Resource resource.robot | @@ -16,6 +16,7 @@ Resource resource.robot | ||
| 16 | ... tender_meat=${${TENDER_MEAT}} | 16 | ... tender_meat=${${TENDER_MEAT}} |
| 17 | ... lot_meat=${${LOT_MEAT}} | 17 | ... lot_meat=${${LOT_MEAT}} |
| 18 | ... item_meat=${${ITEM_MEAT}} | 18 | ... item_meat=${${ITEM_MEAT}} |
| 19 | + ... api_host_url=${API_HOST_URL} | ||
| 19 | ${DIALOGUE_TYPE}= Get Variable Value ${DIALOGUE_TYPE} | 20 | ${DIALOGUE_TYPE}= Get Variable Value ${DIALOGUE_TYPE} |
| 20 | Run keyword if '${DIALOGUE_TYPE}' != '${None}' Set to dictionary ${tender_parameters} dialogue_type=${DIALOGUE_TYPE} | 21 | Run keyword if '${DIALOGUE_TYPE}' != '${None}' Set to dictionary ${tender_parameters} dialogue_type=${DIALOGUE_TYPE} |
| 21 | ${tender_data}= Підготувати дані для створення тендера ${tender_parameters} | 22 | ${tender_data}= Підготувати дані для створення тендера ${tender_parameters} |
| @@ -21,7 +21,7 @@ Library openprocurement_client_helper.py | @@ -21,7 +21,7 @@ Library openprocurement_client_helper.py | ||
| 21 | [Documentation] Відкрити браузер, створити об’єкт api wrapper, тощо | 21 | [Documentation] Відкрити браузер, створити об’єкт api wrapper, тощо |
| 22 | Log ${API_HOST_URL} | 22 | Log ${API_HOST_URL} |
| 23 | Log ${API_VERSION} | 23 | Log ${API_VERSION} |
| 24 | - ${api_wrapper}= prepare_api_wrapper ${USERS.users['${username}'].api_key} ${API_HOST_URL} ${API_VERSION} | 24 | + ${api_wrapper}= prepare_api_wrapper ${USERS.users['${username}'].api_key} ${RESOURCE} ${API_HOST_URL} ${API_VERSION} |
| 25 | Set To Dictionary ${USERS.users['${username}']} client=${api_wrapper} | 25 | Set To Dictionary ${USERS.users['${username}']} client=${api_wrapper} |
| 26 | Set To Dictionary ${USERS.users['${username}']} access_token=${EMPTY} | 26 | Set To Dictionary ${USERS.users['${username}']} access_token=${EMPTY} |
| 27 | ${id_map}= Create Dictionary | 27 | ${id_map}= Create Dictionary |
| @@ -24,8 +24,8 @@ class StableClient(Client): | @@ -24,8 +24,8 @@ class StableClient(Client): | ||
| 24 | return super(StableClient, self).request(*args, **kwargs) | 24 | return super(StableClient, self).request(*args, **kwargs) |
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | -def prepare_api_wrapper(key, host_url, api_version): | ||
| 28 | - return StableClient(key, host_url, api_version) | 27 | +def prepare_api_wrapper(key, resource, host_url, api_version): |
| 28 | + return StableClient(key, resource, host_url, api_version) | ||
| 29 | 29 | ||
| 30 | 30 | ||
| 31 | def get_complaint_internal_id(tender, complaintID): | 31 | def get_complaint_internal_id(tender, complaintID): |
Please
register
or
login
to post a comment