fix flake8 (#446)
This commit is contained in:
+1
-2
@@ -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': [
|
||||
|
||||
@@ -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"]
|
||||
|
||||
+4
-4
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user