Skip to content

Commit

Permalink
Minor test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Jul 1, 2019
1 parent 428340b commit 28910b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ckan/tests/lib/test_helpers.py
Expand Up @@ -211,7 +211,8 @@ def test_url_for_qualified_with_root_path_locale_and_script_name_env(self):
@helpers.change_config('ckan.root_path', '/my/custom/path/{{LANG}}/foo')
def test_url_for_with_root_path_locale_and_script_name_env(self):
url = '/my/custom/path/de/foo/dataset/my_dataset'
generated_url = h.url_for('dataset.read',
generated_url = h.url_for(controller='package',
action='read',
id='my_dataset',
locale='de')
eq_(generated_url, url)
Expand Down
3 changes: 2 additions & 1 deletion ckanext/datastore/backend/postgres.py
Expand Up @@ -285,7 +285,8 @@ def _cache_types(context):
return _cache_types(context)

try:
register_composite('nested', connection.connection.connection, True)
register_composite(
'nested', connection.connection.connection, True)
except AttributeError:
register_composite('nested', connection.connection, True)

Expand Down

0 comments on commit 28910b8

Please sign in to comment.