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

Method setup_method

t/unit/tasks/test_trace.py:34–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32
33class TraceCase:
34 def setup_method(self):
35 @self.app.task(shared=False)
36 def add(x, y):
37 return x + y
38
39 self.add = add
40
41 @self.app.task(shared=False, ignore_result=True)
42 def add_cast(x, y):
43 return x + y
44
45 self.add_cast = add_cast
46
47 @self.app.task(shared=False)
48 def raises(exc):
49 raise exc
50
51 self.raises = raises
52
53 def trace(self, *args, **kwargs):
54 return trace(self.app, *args, **kwargs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected