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

Method setup_method

t/unit/worker/test_worker.py:85–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83class test_Consumer(ConsumerCase):
84
85 def setup_method(self):
86 self.buffer = FastQueue()
87 self.timer = Timer()
88
89 @self.app.task(shared=False)
90 def foo_task(x, y, z):
91 return x * y * z
92 self.foo_task = foo_task
93
94 def teardown_method(self):
95 self.timer.stop()

Callers

nothing calls this directly

Calls 1

TimerClass · 0.90

Tested by

no test coverage detected