MCPcopy
hub / github.com/celery/celery / test_mark_as_revoked

Method test_mark_as_revoked

t/unit/backends/test_database.py:322–326  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

320 assert tb.get_state(tid) == states.STARTED
321
322 def test_mark_as_revoked(self):
323 tb = DatabaseBackend(self.uri, app=self.app)
324 tid = uuid()
325 tb.mark_as_revoked(tid)
326 assert tb.get_state(tid) == states.REVOKED
327
328 def test_mark_as_retry(self):
329 tb = DatabaseBackend(self.uri, app=self.app)

Callers

nothing calls this directly

Calls 3

DatabaseBackendClass · 0.90
mark_as_revokedMethod · 0.80
get_stateMethod · 0.80

Tested by

no test coverage detected