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

Method setup_method

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

Source from the content-addressed store, hash-verified

90
91class test_Consumer(ConsumerTestCase):
92 def setup_method(self):
93 @self.app.task(shared=False)
94 def add(x, y):
95 return x + y
96
97 self.add = add
98
99 def test_repr(self):
100 assert repr(self.get_consumer())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected