MCPcopy
hub / github.com/django/django / enqueue_callback

Method enqueue_callback

tests/test_utils/tests.py:2083–2087  ·  view source on GitHub ↗
(self, using="default")

Source from the content-addressed store, hash-verified

2081 callback_called = False
2082
2083 def enqueue_callback(self, using="default"):
2084 def hook():
2085 self.callback_called = True
2086
2087 transaction.on_commit(hook, using=using)
2088
2089 def test_no_arguments(self):
2090 with self.captureOnCommitCallbacks() as callbacks:

Callers 6

test_no_argumentsMethod · 0.95
test_usingMethod · 0.95
test_different_usingMethod · 0.95
test_executeMethod · 0.95
test_pre_callbackMethod · 0.95

Calls 1

on_commitMethod · 0.45

Tested by

no test coverage detected