(self)
| 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() |
no outgoing calls
no test coverage detected