def test_refresh(): defaults = [] config = {} update_defaults({'a': 1}, config=config, defaults=defaults) assert config == {'a': 1} refresh(paths=[], env={'DASK_B': '2'}, config=config, defaults=defaults) assert config == {'a': 1, 'b': 2} refresh(paths=[], env={'DASK_C': '3'}, config=config, defaults=defaults) assert config == {'a': 1, 'c': 3}
def test_refresh(): defaults = [] config = {} update_defaults({"a": 1}, config=config, defaults=defaults) assert config == {"a": 1} refresh(paths=[], env={"DASK_B": "2"}, config=config, defaults=defaults) assert config == {"a": 1, "b": 2} refresh(paths=[], env={"DASK_C": "3"}, config=config, defaults=defaults) assert config == {"a": 1, "c": 3}
def test_refresh(): defaults = [] config = {} update_defaults({'a': 1}, config=config, defaults=defaults) assert config == {'a': 1} refresh(paths=[], env={'DASK_B': '2'}, config=config, defaults=defaults) assert config == {'a': 1, 'b': 2} refresh(paths=[], env={'DASK_C': '3'}, config=config, defaults=defaults) assert config == {'a': 1, 'c': 3}