Skip to content

Commit ed11b97

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_signals.py

Lines changed: 4 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)
@@ -47,6 +50,7 @@ def test_process_picture_sends_process_picture_done_on_create(image_upload_file)
4750

4851

4952
@pytest.mark.django_db
53+
@skip_dramatiq
5054
def test_processed_object_found(image_upload_file):
5155
obj = SimpleModel.objects.create()
5256

0 commit comments

Comments
 (0)