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

Method failing_store

t/unit/backends/test_database.py:142–146  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

140 call_count = [0]
141
142 def failing_store(*args, **kwargs):
143 call_count[0] += 1
144 if call_count[0] < 3:
145 raise DatabaseError("connection lost", "SELECT 1", [], Exception())
146 return original_store(*args, **kwargs)
147
148 tb._store_result = failing_store
149

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected