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

Method setup_method

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

Source from the content-addressed store, hash-verified

9class AnnotationCase:
10
11 def setup_method(self):
12 @self.app.task(shared=False)
13 def add(x, y):
14 return x + y
15 self.add = add
16
17 @self.app.task(shared=False)
18 def mul(x, y):
19 return x * y
20 self.mul = mul
21
22
23class test_MapAnnotation(AnnotationCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected