MCPcopy
hub / github.com/celery/celery / setup_method

Method setup_method

t/unit/worker/test_control.py:122–128  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120class test_ControlPanel:
121
122 def setup_method(self):
123 self.panel = self.create_panel(consumer=Consumer(self.app))
124
125 @self.app.task(name='c.unittest.mytask', rate_limit=200, shared=False)
126 def mytask():
127 pass
128 self.mytask = mytask
129
130 def create_state(self, **kwargs):
131 kwargs.setdefault('app', self.app)

Callers

nothing calls this directly

Calls 2

create_panelMethod · 0.95
ConsumerClass · 0.70

Tested by

no test coverage detected