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

Method setattr

t/unit/conftest.py:603–607  ·  view source on GitHub ↗
(self, target, name=SENTINEL, value=SENTINEL, **kwargs)

Source from the content-addressed store, hash-verified

601 return value
602
603 def setattr(self, target, name=SENTINEL, value=SENTINEL, **kwargs):
604 # alias to __call__ with the interface of pytest.monkeypatch.setattr
605 if value is SENTINEL:
606 value, name = name, None
607 return self(target, value, name=name)
608
609 def setitem(self, dic, name, value=SENTINEL, new=MagicMock, **kwargs):
610 # same as pytest.monkeypatch.setattr but default value is MagicMock

Calls

no outgoing calls

Tested by

no test coverage detected