MCPcopy
hub / github.com/django/django / test_execute

Method test_execute

tests/test_utils/tests.py:2113–2118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2111 self.assertEqual(callbacks, [])
2112
2113 def test_execute(self):
2114 with self.captureOnCommitCallbacks(execute=True) as callbacks:
2115 self.enqueue_callback()
2116
2117 self.assertEqual(len(callbacks), 1)
2118 self.assertIs(self.callback_called, True)
2119
2120 def test_pre_callback(self):
2121 def pre_hook():

Callers

nothing calls this directly

Calls 2

enqueue_callbackMethod · 0.95

Tested by

no test coverage detected