MCPcopy Index your code
hub / github.com/celery/celery / MockModule

Class MockModule

t/unit/conftest.py:528–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526 prev = {}
527
528 class MockModule(types.ModuleType):
529
530 def __getattr__(self, attr):
531 setattr(self, attr, Mock())
532 return types.ModuleType.__getattribute__(self, attr)
533
534 mods = []
535 for name in names:

Callers 1

_moduleFunction · 0.85

Calls

no outgoing calls

Tested by 1

_moduleFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…