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'])
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'])
def test_empty_config(self): config = init_config({}, self.config_dir) six.assertCountEqual(self, list(config.keys()), [VW_GLOBAL, VW_ENV_CLI_SECTION_NAME])
def test_empty_config(self): config = init_config({}, {}, self.config_dir) six.assertCountEqual(self, list(config.keys()), [VW_GLOBAL, VW_ENV_CLI_SECTION_NAME])