MCPcopy Create free account
hub / github.com/dask/dask / test_refresh

Function test_refresh

dask/tests/test_config.py:429–440  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

427
428
429def test_refresh():
430 defaults = []
431 config = {}
432
433 update_defaults({"a": 1}, config=config, defaults=defaults)
434 assert config == {"a": 1}
435
436 refresh(paths=[], env={"DASK_B": "2"}, config=config, defaults=defaults)
437 assert config == {"a": 1, "b": 2}
438
439 refresh(paths=[], env={"DASK_C": "3"}, config=config, defaults=defaults)
440 assert config == {"a": 1, "c": 3}
441
442
443@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

update_defaultsFunction · 0.90
refreshFunction · 0.90

Tested by

no test coverage detected