def test_refresh(): defaults = [] config = Config(CONFIG_NAME, defaults=defaults) config.update_defaults({'a': 1}) assert config.config == {'a': 1} config.refresh(paths=[], env={ENV_PREFIX + 'B': '2'}) assert config.config == {'a': 1, 'b': 2} config.refresh(paths=[], env={ENV_PREFIX + 'C': '3'}) assert config.config == {'a': 1, 'c': 3}
def test_refresh(): defaults = [] config = Config(config_name, defaults=defaults) config.update_defaults({'a': 1}) assert config.config == {'a': 1} config.refresh(paths=[], env={'TEST_B': '2'}) assert config.config == {'a': 1, 'b': 2} config.refresh(paths=[], env={'TEST_C': '3'}) assert config.config == {'a': 1, 'c': 3}