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

Function module_context_manager

t/unit/conftest.py:541–543  ·  view source on GitHub ↗

Mock one or modules such that every attribute is a :class:`Mock`.

(*names)

Source from the content-addressed store, hash-verified

539
540@contextmanager
541def module_context_manager(*names):
542 """Mock one or modules such that every attribute is a :class:`Mock`."""
543 yield from _module(*names)
544
545
546def _module(*names):

Callers 1

modulesMethod · 0.85

Calls 1

_moduleFunction · 0.85

Tested by

no test coverage detected