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

Method on_commit

t/unit/contrib/django/test_task.py:19–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17
18 @pytest.fixture(name="on_commit")
19 def on_commit(self):
20 with patch(
21 'django.db.transaction.on_commit',
22 side_effect=lambda f: f(),
23 ) as patched_on_commit:
24 yield patched_on_commit
25
26 def test_delay_on_commit(self, task_instance, on_commit):
27 result = task_instance.delay_on_commit()

Callers 2

delay_on_commitMethod · 0.80
apply_async_on_commitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected