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

Function module

t/unit/conftest.py:535–537  ·  view source on GitHub ↗

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

(request)

Source from the content-addressed store, hash-verified

533
534@pytest.fixture
535def module(request):
536 """Mock one or modules such that every attribute is a :class:`Mock`."""
537 yield from _module(*request.node.get_closest_marker("patched_module").args)
538
539
540@contextmanager

Callers

nothing calls this directly

Calls 1

_moduleFunction · 0.85

Tested by

no test coverage detected