Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ DummyCollection
Class
DummyCollection
dask/tests/test_base.py:54–59 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
52
53
def
test_is_dask_collection():
54
class
DummyCollection:
55
def
__init__(self, dsk):
56
self.dask = dsk
57
58
def
__dask_graph__(self):
59
return
self.dask
60
61
x = delayed(1) + 2
62
assert is_dask_collection(x)
Callers
2
test_is_dask_collection
Function · 0.85
test_get_collection_names
Function · 0.85
Calls
no outgoing calls
Tested by
2
test_is_dask_collection
Function · 0.68
test_get_collection_names
Function · 0.68