From 6da1ed305fefbb2f30053cc23e7eaf97b9bb42d4 Mon Sep 17 00:00:00 2001 From: Teemu Erkkola Date: Mon, 12 Feb 2024 13:39:49 +0200 Subject: [PATCH] flake8 --- ckanext/xroad_integration/harvesters/xroad_harvester.py | 8 ++++++-- ckanext/xroad_integration/tests/test_plugin.py | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ckanext/xroad_integration/harvesters/xroad_harvester.py b/ckanext/xroad_integration/harvesters/xroad_harvester.py index bf8c826..2b762d9 100644 --- a/ckanext/xroad_integration/harvesters/xroad_harvester.py +++ b/ckanext/xroad_integration/harvesters/xroad_harvester.py @@ -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: diff --git a/ckanext/xroad_integration/tests/test_plugin.py b/ckanext/xroad_integration/tests/test_plugin.py index 8d261aa..62674c6 100644 --- a/ckanext/xroad_integration/tests/test_plugin.py +++ b/ckanext/xroad_integration/tests/test_plugin.py @@ -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'] -