Commit 70e28fa9164720083668a571b9c762cbae4a5a04
1 parent
876061df
Require explicit args for prepare_api_wrapper
This eliminates another duplication of default settings. API keys are stored in data/users.yaml. API version and host are stored in resource.robot
Showing
1 changed file
with
1 additions
and
3 deletions
1 | from openprocurement_client.client import Client | 1 | from openprocurement_client.client import Client |
2 | 2 | ||
3 | 3 | ||
4 | -def prepare_api_wrapper(key='', | ||
5 | - host_url='https://api-sandbox.openprocurement.org', | ||
6 | - api_version='0.8'): | 4 | +def prepare_api_wrapper(key, host_url, api_version): |
7 | return Client(key, host_url, api_version) | 5 | return Client(key, host_url, api_version) |
8 | 6 | ||
9 | 7 |
Please
register
or
login
to post a comment