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

Method setup_method

t/unit/backends/test_base.py:525–537  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

523class test_BaseBackend_dict:
524
525 def setup_method(self):
526 self.b = DictBackend(app=self.app)
527
528 @self.app.task(shared=False, bind=True)
529 def bound_errback(self, result):
530 pass
531
532 @self.app.task(shared=False)
533 def errback(arg1, arg2):
534 errback.last_result = arg1 + arg2
535
536 self.bound_errback = bound_errback
537 self.errback = errback
538
539 def test_delete_group(self):
540 self.b.delete_group('can-delete')

Callers

nothing calls this directly

Calls 1

DictBackendClass · 0.85

Tested by

no test coverage detected