Skip to content
Snippets Groups Projects
Commit 7a050375 authored by Chandrasekhar Ramakrishnan's avatar Chandrasekhar Ramakrishnan
Browse files

SSDM-4670: Added utility method to get the path to the local public config folder.

parent 57b903f0
No related branches found
No related tags found
No related merge requests found
...@@ -190,3 +190,7 @@ class ConfigResolver(object): ...@@ -190,3 +190,7 @@ class ConfigResolver(object):
config = config['public'] config = config['public']
config[param.name] = value config[param.name] = value
return config return config
def local_public_config_folder_path(self):
loc = self.env.location_at_path(['local', 'public'])
return self.location_resolver.resolve_location(loc)
...@@ -46,6 +46,8 @@ def test_read_config(tmpdir): ...@@ -46,6 +46,8 @@ def test_read_config(tmpdir):
expected_dict = json.load(f) expected_dict = json.load(f)
assert config_dict['user'] == expected_dict['user'] assert config_dict['user'] == expected_dict['user']
assert './.obis' == resolver.local_public_config_folder_path()
def test_write_config(tmpdir): def test_write_config(tmpdir):
copy_user_config_test_data(tmpdir) copy_user_config_test_data(tmpdir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment