MCPcopy Create free account
hub / github.com/celery/celery / test_annotate

Method test_annotate

t/unit/app/test_annotations.py:25–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23class test_MapAnnotation(AnnotationCase):
24
25 def test_annotate(self):
26 x = MapAnnotation({self.add.name: {'foo': 1}})
27 assert x.annotate(self.add) == {'foo': 1}
28 assert x.annotate(self.mul) is None
29
30 def test_annotate_any(self):
31 x = MapAnnotation({'*': {'foo': 2}})

Callers

nothing calls this directly

Calls 2

annotateMethod · 0.95
MapAnnotationClass · 0.90

Tested by

no test coverage detected