Exemplo n.º 1
0
 def _read_settings(self):
     io = SettingsIO(path=self.settings_file)
     return io.read()
Exemplo n.º 2
0
 def setUp(self):
     self.settings_file = os.path.join(os.path.dirname(__file__), 'data',
                                       'testsettings.py')
     self.settings = SettingsIO(path=self.settings_file)
Exemplo n.º 3
0
 def _write_settings(self, dict):
     io = SettingsIO(path=self.settings_file)
     io.write(dict)
Exemplo n.º 4
0
 def _read_settings_from_file(self, path=None):
     if path:
         return SettingsIO(path=path).read()
     return SettingsIO(path=self.path).read()