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

Method __call__

t/unit/conftest.py:585–589  ·  view source on GitHub ↗
(self, path, value=SENTINEL, name=None,
                 new=MagicMock, **kwargs)

Source from the content-addressed store, hash-verified

583 return getattr(self.monkeypatch, name)
584
585 def __call__(self, path, value=SENTINEL, name=None,
586 new=MagicMock, **kwargs):
587 value = self._value_or_mock(value, new, name, path, **kwargs)
588 self.monkeypatch.setattr(path, value)
589 return value
590
591 def object(self, target, attribute, *args, **kwargs):
592 return _wrap_context(

Callers

nothing calls this directly

Calls 2

_value_or_mockMethod · 0.95
setattrMethod · 0.80

Tested by

no test coverage detected