예제 #1
0
 def _read_settings(self):
     io = SettingsIO(path=self.settings_file)
     return io.read()
예제 #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)
예제 #3
0
 def _write_settings(self, dict):
     io = SettingsIO(path=self.settings_file)
     io.write(dict)
예제 #4
0
 def _read_settings_from_file(self, path=None):
     if path:
         return SettingsIO(path=path).read()
     return SettingsIO(path=self.path).read()