Skip to content

Commit

Permalink
Remove celery instance in tests. Switch to Eager mode (#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari authored Oct 19, 2022
1 parent fa7b33e commit 5f1dd3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ jobs:
run: |
echo "JWKS_BASE64=$(python manage.py generate_jwks)" >> $GITHUB_ENV
- name: Run celery worker for tests
run: celery -A config.celery_app worker -B --loglevel=INFO --detach

- name: Run Tests with coverage
run: coverage run manage.py test --settings=config.settings.test --parallel=$(nproc)

Expand Down
3 changes: 2 additions & 1 deletion config/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
# https://whitenoise.evans.io/en/stable/django.html#whitenoise-makes-my-tests-run-slow
WHITENOISE_AUTOREFRESH = True


LOGGING = {
"version": 1,
"disable_existing_loggers": False,
Expand All @@ -89,3 +88,5 @@
"level": "ERROR",
},
}

CELERY_TASK_ALWAYS_EAGER = True

0 comments on commit 5f1dd3d

Please sign in to comment.