示例#1
0
 def get(self, section_name):
     """Get the config from all config sections."""
     config = {}
     # step through back to front, to ensure front of the list is top priority
     for p in self.read_config_path[::-1]:
         cm = BaseJSONConfigManager(config_dir=p)
         recursive_update(config, cm.get(section_name))
     return config
示例#2
0
 def get(self, section_name):
     """Get the config from all config sections."""
     config = {}
     # step through back to front, to ensure front of the list is top priority
     for p in self.read_config_path[::-1]:
         cm = BaseJSONConfigManager(config_dir=p)
         recursive_update(config, cm.get(section_name))
     return config
def test_case_0():
    try:
        var0 = 'K7UbH\r2AYr'
        var1 = {}
        var2 = module0.BaseJSONConfigManager(**var1)
        assert var2 is not None
        var3 = [var2, var2, var1, var2]
        var4 = {var2: var1}
        var5 = module0.recursive_update(var4, var4)
    except BaseException:
        pass
def test_case_2():
    try:
        var0 = 'K,EbH\r2AYr'
        var1 = {var0: var0}
        var2 = module0.BaseJSONConfigManager(**var1)
        assert var2 is not None
        var3 = [var2, var2, var1, var2]
        var4 = module0.BaseJSONConfigManager()
        assert var4 is not None
        var5 = {var4: var1, var0: var3, var0: var3}
        var6 = module0.recursive_update(var3, var5)
    except BaseException:
        pass
def test_case_1():
    try:
        var0 = 'K7UbH\r2AYr'
        var1 = {var0: var0}
        var2 = module0.BaseJSONConfigManager(**var1)
        assert var2 is not None
        var3 = [var2, var2, var1, var2]
        var4 = {var2: var1}
        var5 = module0.recursive_update(var4, var4)
        assert var5 is None
        var6 = None
        var7 = module0.BaseJSONConfigManager()
        assert var7 is not None
        var8 = var7.file_name(var6)
    except BaseException:
        pass
def test_case_10():
    try:
        var0 = '-;!z^(N40$\r#'
        var1 = module0.recursive_update(var0, var0)
    except BaseException:
        pass