Esempio n. 1
0
 def test_basic_config(self):
     with open(os.path.join(self.config_dir, "test.conf"), "w") as f:
         f.write(TestReadingConfigs.dict_to_ini(default_config_values))
     config = init_config({}, config_dir=self.config_dir)
     six.assertCountEqual(self, list(config.keys()), ['test', 'global'])
     self.assert_config_equals_default(config['test'])
Esempio n. 2
0
 def test_basic_config(self):
     with open(os.path.join(self.config_dir, "test.conf"), "w") as f:
         f.write(TestReadingConfigs.dict_to_ini(default_config_values))
     config = init_config({}, {}, config_dir=self.config_dir)
     six.assertCountEqual(self, list(config.keys()), ['test', 'global'])
     self.assert_config_equals_default(config['test'])
Esempio n. 3
0
 def test_empty_config(self):
     config = init_config({}, self.config_dir)
     six.assertCountEqual(self, list(config.keys()),
                          [VW_GLOBAL, VW_ENV_CLI_SECTION_NAME])
Esempio n. 4
0
 def test_empty_config(self):
     config = init_config({}, {}, self.config_dir)
     six.assertCountEqual(self, list(config.keys()), [VW_GLOBAL, VW_ENV_CLI_SECTION_NAME])