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

Class MockModule

t/unit/conftest.py:549–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547 prev = {}
548
549 class MockModule(types.ModuleType):
550
551 def __getattr__(self, attr):
552 setattr(self, attr, Mock())
553 return types.ModuleType.__getattribute__(self, attr)
554
555 mods = []
556 for name in names:

Callers 1

_moduleFunction · 0.85

Calls

no outgoing calls

Tested by 1

_moduleFunction · 0.68