Skip to content

Commit 4ff78b4

Browse files
committed
Ensure task is called in the tests
1 parent ce28ef9 commit 4ff78b4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/apps/competitions/tests/test_submissions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ def __init__(self):
247247
task = Task()
248248
celery_app.return_value = task
249249
mock_sassy.return_value = ''
250-
run_submission(submission.pk)
250+
with self.captureOnCommitCallbacks(execute=True):
251+
run_submission(submission.pk)
251252
return celery_app
252253

253254
def test_making_submission_creates_parent_sub_and_additional_sub_per_task(self):

0 commit comments

Comments
 (0)