fix flake8 (#446)

This commit is contained in:
Tom Kralidis
2020-06-04 21:26:55 -04:00
committed by GitHub
parent c5134f07ce
commit 89f8cafbb5
3 changed files with 6 additions and 7 deletions
+1 -2
View File
@@ -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': [
+1 -1
View File
@@ -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
View File
@@ -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'