Skip to content

Commit 73fadbe

Browse files
committed
Fix tests
1 parent 6dad648 commit 73fadbe

3 files changed

Lines changed: 6 additions & 12 deletions

File tree

app/tests/challenges_tests/test_models.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ def test_participants_follow_forum(group):
9494
def test_non_posters_notified(
9595
group, settings, django_capture_on_commit_callbacks
9696
):
97-
settings.CELERY_TASK_ALWAYS_EAGER = True
98-
settings.CELERY_TASK_EAGER_PROPAGATES = True
97+
settings.LAMBDA_TASKS_EAGER = True
9998

10099
p = UserFactory()
101100
u = UserFactory()

app/tests/notifications_tests/test_signals.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@
7979
def 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(
120119
def 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
167165
def 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()

app/tests/notifications_tests/test_views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,7 @@ def test_forum_subscribe_and_unsubscribe(client):
221221
def test_topic_subscribe_and_unsubscribe(
222222
client, settings, django_capture_on_commit_callbacks
223223
):
224-
settings.CELERY_TASK_ALWAYS_EAGER = True
225-
settings.CELERY_TASK_EAGER_PROPAGATES = True
224+
settings.LAMBDA_TASKS_EAGER = True
226225

227226
admin = UserFactory()
228227
user = UserFactory()

0 commit comments

Comments
 (0)