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

Method effect

t/unit/security/test_security.py:132–138  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

130 calls = [0]
131
132 def effect(*args):
133 try:
134 m = Mock()
135 m.read.return_value = 'B' if calls[0] else 'A'
136 return m
137 finally:
138 calls[0] += 1
139
140 self.app.conf.task_serializer = 'auth'
141 self.app.conf.accept_content = ['auth']

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected