Skip to content

Commit 7631050

Browse files
committed
Update tests
1 parent e1b02a4 commit 7631050

3 files changed

Lines changed: 6 additions & 12 deletions

File tree

app/tests/verification_tests/test_admin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737

3838
@pytest.mark.django_db
3939
def test_deactivate_users(settings, django_capture_on_commit_callbacks):
40-
settings.CELERY_TASK_ALWAYS_EAGER = True
41-
settings.CELERY_TASK_EAGER_PROPAGATES = True
40+
settings.LAMBDA_TASKS_EAGER = True
4241

4342
users = UserFactory.create_batch(5)
4443

app/tests/verification_tests/test_forms.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@ def test_user_can_verify(self):
222222
def test_user_can_not_verify_other_token(
223223
self, client, settings, django_capture_on_commit_callbacks
224224
):
225-
settings.CELERY_TASK_ALWAYS_EAGER = True
226-
settings.CELERY_TASK_EAGER_PROPAGATES = True
225+
settings.LAMBDA_TASKS_EAGER = True
227226

228227
u1 = UserFactory()
229228
v1 = VerificationFactory(user=u1)

app/tests/verification_tests/test_signals.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
def test_auto_deactivate(
1313
auto_deactivate, settings, django_capture_on_commit_callbacks
1414
):
15-
settings.CELERY_TASK_ALWAYS_EAGER = True
16-
settings.CELERY_TASK_EAGER_PROPAGATES = True
15+
settings.LAMBDA_TASKS_EAGER = True
1716

1817
vus = VerificationUserSet.objects.create(auto_deactivate=auto_deactivate)
1918
u = UserFactory()
@@ -34,8 +33,7 @@ def test_auto_deactivate(
3433
def test_auto_deactivate_reverse(
3534
auto_deactivate, settings, django_capture_on_commit_callbacks
3635
):
37-
settings.CELERY_TASK_ALWAYS_EAGER = True
38-
settings.CELERY_TASK_EAGER_PROPAGATES = True
36+
settings.LAMBDA_TASKS_EAGER = True
3937

4038
vus = VerificationUserSet.objects.create(auto_deactivate=auto_deactivate)
4139
u = UserFactory()
@@ -56,8 +54,7 @@ def test_auto_deactivate_reverse(
5654
def test_auto_deactivate_set(
5755
auto_deactivate, settings, django_capture_on_commit_callbacks
5856
):
59-
settings.CELERY_TASK_ALWAYS_EAGER = True
60-
settings.CELERY_TASK_EAGER_PROPAGATES = True
57+
settings.LAMBDA_TASKS_EAGER = True
6158

6259
vus = VerificationUserSet.objects.create(auto_deactivate=auto_deactivate)
6360
u = UserFactory()
@@ -78,8 +75,7 @@ def test_auto_deactivate_set(
7875
def test_auto_deactivate_reverse_set(
7976
auto_deactivate, settings, django_capture_on_commit_callbacks
8077
):
81-
settings.CELERY_TASK_ALWAYS_EAGER = True
82-
settings.CELERY_TASK_EAGER_PROPAGATES = True
78+
settings.LAMBDA_TASKS_EAGER = True
8379

8480
vus = VerificationUserSet.objects.create(auto_deactivate=auto_deactivate)
8581
u = UserFactory()

0 commit comments

Comments
 (0)