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

Method modules

t/unit/conftest.py:615–623  ·  view source on GitHub ↗
(self, *mods)

Source from the content-addressed store, hash-verified

613 return value
614
615 def modules(self, *mods):
616 modules = []
617 for mod in mods:
618 mod = mod.split('.')
619 modules.extend(reversed([
620 '.'.join(mod[:-i] if i else mod) for i in range(len(mod))
621 ]))
622 modules = sorted(set(modules))
623 return _wrap_context(module_context_manager(*modules), self.request)
624
625
626def _wrap_context(context, request):

Callers

nothing calls this directly

Calls 4

_wrap_contextFunction · 0.85
module_context_managerFunction · 0.85
extendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected