Skip to content

Commit e54b332

Browse files
committed
Handler will not be called without async task being run
1 parent 67a476b commit e54b332

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_signals.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
from django.dispatch import receiver
55

66
from pictures import signals, tasks
7+
from tests.test_migrations import skip_dramatiq
78
from tests.testapp.models import SimpleModel
89

910

1011
@pytest.mark.django_db
12+
@skip_dramatiq
1113
def test_process_picture_sends_process_picture_done(image_upload_file):
1214
obj = SimpleModel.objects.create(picture=image_upload_file)
1315

@@ -31,6 +33,7 @@ def test_process_picture_sends_process_picture_done(image_upload_file):
3133

3234

3335
@pytest.mark.django_db
36+
@skip_dramatiq
3437
def test_process_picture_sends_process_picture_done_on_create(image_upload_file):
3538
handler = Mock()
3639
signals.picture_processed.connect(handler)

0 commit comments

Comments
 (0)