Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
bzar committed Feb 12, 2024
1 parent f8b1097 commit 6da1ed3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions ckanext/xroad_integration/harvesters/xroad_harvester.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,12 @@ def fetch_stage(self, harvest_object):

if service.service_type.lower() == 'rest':
try:
path = '/'.join(['getRest', dataset['xRoadInstance'], dataset['xRoadMemberClass'], dataset['xRoadMemberCode'],
subsystem.subsystem_code, service.service_code])
path = '/'.join(['getRest',
dataset['xRoadInstance'],
dataset['xRoadMemberClass'],
dataset['xRoadMemberCode'],
subsystem.subsystem_code,
service.service_code])
rest_services_data = xroad_catalog_query_json(path)
service.rest_services = RestServices.from_dict(rest_services_data)
except ContentFetchError:
Expand Down
1 change: 0 additions & 1 deletion ckanext/xroad_integration/tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,4 +494,3 @@ def test_getrest(xroad_rest_adapter_mocks, xroad_rest_mocks):
rest_service = next(s for s in subsystem.get('resources', []) if s['xroad_servicecode'] == 'restService')
assert {'method': 'POST', 'path': '/PostSomething/v1'} in rest_service['rest_endpoints']['endpoints']
assert {'method': 'GET', 'path': '/ComeGetSome/v1'} in rest_service['rest_endpoints']['endpoints']

0 comments on commit 6da1ed3

Please sign in to comment.