7979def test_notification_sent_on_new_topic (
8080 kind , settings , django_capture_on_commit_callbacks
8181):
82- settings .CELERY_TASK_ALWAYS_EAGER = True
83- settings .CELERY_TASK_EAGER_PROPAGATES = True
82+ settings .LAMBDA_TASKS_EAGER = True
8483
8584 u = UserFactory ()
8685 f = ForumFactory ()
@@ -120,8 +119,7 @@ def test_notification_sent_on_new_topic(
120119def test_notification_sent_on_new_post (
121120 kind , settings , django_capture_on_commit_callbacks
122121):
123- settings .CELERY_TASK_ALWAYS_EAGER = True
124- settings .CELERY_TASK_EAGER_PROPAGATES = True
122+ settings .LAMBDA_TASKS_EAGER = True
125123
126124 u = UserFactory ()
127125 f = ForumFactory ()
@@ -165,8 +163,7 @@ def test_notification_sent_on_new_post(
165163
166164@pytest .mark .django_db
167165def test_follow_if_post_in_topic (settings , django_capture_on_commit_callbacks ):
168- settings .CELERY_TASK_ALWAYS_EAGER = True
169- settings .CELERY_TASK_EAGER_PROPAGATES = True
166+ settings .LAMBDA_TASKS_EAGER = True
170167
171168 u = UserFactory ()
172169 f = ForumFactory ()
@@ -185,8 +182,7 @@ def test_notification_created_for_target_followers_on_action_creation(
185182 settings ,
186183 django_capture_on_commit_callbacks ,
187184):
188- settings .CELERY_TASK_ALWAYS_EAGER = True
189- settings .CELERY_TASK_EAGER_PROPAGATES = True
185+ settings .LAMBDA_TASKS_EAGER = True
190186
191187 u = UserFactory ()
192188 f = ForumFactory ()
0 commit comments