From f941de663e12767bedb14e5bd2481c40d60aaf4f Mon Sep 17 00:00:00 2001 From: Thorge Petersen <petersen@rz.uni-kiel.de> Date: Fri, 24 Mar 2023 10:30:23 +0100 Subject: [PATCH] Aligned config property names --- ckanext/odsh/profiles/odsh_european_dcatap_profile.py | 2 +- ckanext/odsh/tests/test_env.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ckanext/odsh/profiles/odsh_european_dcatap_profile.py b/ckanext/odsh/profiles/odsh_european_dcatap_profile.py index c9a8ecf3..4b56438b 100644 --- a/ckanext/odsh/profiles/odsh_european_dcatap_profile.py +++ b/ckanext/odsh/profiles/odsh_european_dcatap_profile.py @@ -78,7 +78,7 @@ def resource_formats(): # Something went wrong with trying to get the file formats online, try to use backup instead try: fallback_filepath = config.get( - 'ckan.odsh.resource_formats_fallback_filepath') + 'ckanext.odsh.resource_formats_fallback_filepath') g.parse(fallback_filepath) assert len(set([s for s in g.subjects()])) > 120 except: diff --git a/ckanext/odsh/tests/test_env.py b/ckanext/odsh/tests/test_env.py index bc36ce40..978fdfde 100644 --- a/ckanext/odsh/tests/test_env.py +++ b/ckanext/odsh/tests/test_env.py @@ -163,7 +163,7 @@ class TestEnv: assert sum(['dcat' in l.id for l in licenses]) == 23 def test_dcat_formats(self): - checkConfigFile('ckan.odsh.resource_formats_fallback_filepath') + checkConfigFile('ckanext.odsh.resource_formats_fallback_filepath') profiles.resource_formats() assert len(profiles._RESOURCE_FORMATS_IMPORT) > 120 -- GitLab