Skip to content
Snippets Groups Projects
Commit f941de66 authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Aligned config property names

parent fe6d18c0
No related branches found
No related tags found
2 merge requests!41Version 2.0.0,!38Merge py3 into dev
...@@ -78,7 +78,7 @@ def resource_formats(): ...@@ -78,7 +78,7 @@ def resource_formats():
# Something went wrong with trying to get the file formats online, try to use backup instead # Something went wrong with trying to get the file formats online, try to use backup instead
try: try:
fallback_filepath = config.get( fallback_filepath = config.get(
'ckan.odsh.resource_formats_fallback_filepath') 'ckanext.odsh.resource_formats_fallback_filepath')
g.parse(fallback_filepath) g.parse(fallback_filepath)
assert len(set([s for s in g.subjects()])) > 120 assert len(set([s for s in g.subjects()])) > 120
except: except:
......
...@@ -163,7 +163,7 @@ class TestEnv: ...@@ -163,7 +163,7 @@ class TestEnv:
assert sum(['dcat' in l.id for l in licenses]) == 23 assert sum(['dcat' in l.id for l in licenses]) == 23
def test_dcat_formats(self): def test_dcat_formats(self):
checkConfigFile('ckan.odsh.resource_formats_fallback_filepath') checkConfigFile('ckanext.odsh.resource_formats_fallback_filepath')
profiles.resource_formats() profiles.resource_formats()
assert len(profiles._RESOURCE_FORMATS_IMPORT) > 120 assert len(profiles._RESOURCE_FORMATS_IMPORT) > 120
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment