diff --git a/pygeoapi/openapi.py b/pygeoapi/openapi.py index 1e2001a..9d5e134 100644 --- a/pygeoapi/openapi.py +++ b/pygeoapi/openapi.py @@ -470,8 +470,7 @@ def get_oas_30(cfg): paths[process_name_path] = { 'get': { - 'summary': 'Get process metadata'.format( - p.metadata['title']), + 'summary': 'Get process metadata', 'description': p.metadata['description'], 'tags': [k], 'parameters': [ diff --git a/pygeoapi/provider/postgresql.py b/pygeoapi/provider/postgresql.py index 8b6053e..0af04e2 100644 --- a/pygeoapi/provider/postgresql.py +++ b/pygeoapi/provider/postgresql.py @@ -237,7 +237,7 @@ class PostgreSQLProvider(BaseProvider): cursor.execute(sql_query) except Exception as err: LOGGER.error('Error executing sql_query: {}: {}'.format( - sql_query.as_string(cursor)), err) + sql_query.as_string(cursor), err)) raise ProviderQueryError() hits = cursor.fetchone()["hits"] diff --git a/tests/test_api.py b/tests/test_api.py index 43db647..22c3e7a 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -118,10 +118,10 @@ def test_root(config, api_): assert root['links'][0]['rel'] == 'self' assert root['links'][0]['type'] == 'application/json' assert root['links'][0]['href'].endswith('?f=json') - assert any(l['href'].endswith('f=jsonld') and l['rel'] == 'alternate' - for l in root['links']) - assert any(l['href'].endswith('f=html') and l['rel'] == 'alternate' - for l in root['links']) + assert any(link['href'].endswith('f=jsonld') and link['rel'] == 'alternate' + for link in root['links']) + assert any(link['href'].endswith('f=html') and link['rel'] == 'alternate' + for link in root['links']) assert len(root['links']) == 7 assert 'title' in root assert root['title'] == 'pygeoapi default instance'