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

Function test_parse_curry

dask/tests/test_task_spec.py:370–380  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

368
369
370def test_parse_curry():
371 def curry(func, *args, **kwargs):
372 return func(*args, **kwargs) + "c"
373
374 dsk = {
375 "key-1": (curry, func, "a", "b"),
376 }
377 converted = convert_and_verify_keys(dsk)
378 t = Task("key-1", curry, func, "a", "b")
379 assert converted["key-1"]() == t()
380 assert t() == "a-bc"
381
382
383def test_curry():

Callers

nothing calls this directly

Calls 2

TaskClass · 0.90
convert_and_verify_keysFunction · 0.85

Tested by

no test coverage detected