MCPcopy
hub / github.com/celery/celery / test_get_many

Method test_get_many

t/unit/backends/test_filesystem.py:77–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 assert tb.get_result(tid) == data
76
77 def test_get_many(self):
78 data = {uuid(): 'foo', uuid(): 'bar', uuid(): 'baz'}
79
80 tb = FilesystemBackend(app=self.app, url=self.url)
81 for key, value in data.items():
82 tb.mark_as_done(key, value)
83
84 for key, result in tb.get_many(data.keys()):
85 assert result['result'] == data[key]
86
87 def test_forget_deletes_file(self):
88 tb = FilesystemBackend(app=self.app, url=self.url)

Callers

nothing calls this directly

Calls 5

FilesystemBackendClass · 0.90
mark_as_doneMethod · 0.80
keysMethod · 0.80
itemsMethod · 0.45
get_manyMethod · 0.45

Tested by

no test coverage detected