MCPcopy
hub / github.com/celery/celery / module_context_manager

Function module_context_manager

t/unit/conftest.py:520–522  ·  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

518
519@contextmanager
520def module_context_manager(*names):
521 """Mock one or modules such that every attribute is a :class:`Mock`."""
522 yield from _module(*names)
523
524
525def _module(*names):

Callers 1

modulesMethod · 0.85

Calls 1

_moduleFunction · 0.85

Tested by

no test coverage detected