Skip to content
Snippets Groups Projects
Commit d38fb377 authored by Sebastian Lobinger's avatar Sebastian Lobinger
Browse files

update implementation of ConfigProvider to pass tests fix issue #3

parent a7ff4a41
No related branches found
No related tags found
1 merge request!2Resolve "reload implementieren"
class ConfigProvider: class ConfigProvider:
def __init__(self, load_function, *args, **kwargs): def __init__(self, load_function):
self._conf_dict = load_function(*args, **kwargs) self._conf_dict = load_function['function'](
*load_function.get('args'), **load_function.get('kwargs'))
self._load_function = load_function
@property @property
def dict(self): def dict(self):
return self._conf_dict return self._conf_dict
\ No newline at end of file
def reload(self):
self._conf_dict = self._load_function['function'](
*self._load_function.get('args'), **self._load_function.get('kwargs'))
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment