MCPcopy
hub / github.com/celery/celery / modules

Method modules

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

Source from the content-addressed store, hash-verified

592 return value
593
594 def modules(self, *mods):
595 modules = []
596 for mod in mods:
597 mod = mod.split('.')
598 modules.extend(reversed([
599 '.'.join(mod[:-i] if i else mod) for i in range(len(mod))
600 ]))
601 modules = sorted(set(modules))
602 return _wrap_context(module_context_manager(*modules), self.request)
603
604
605def _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