Skip to content
Snippets Groups Projects
Commit 3486fd8a authored by Todd Dembrey's avatar Todd Dembrey Committed by Fredrik Jonsson
Browse files

Convert the test staticfile storage to not be manifest

This avoids the need to collect static files as part of the testing process
locally and in CI.

However - recommend updating CI to run collect static with the production
settings to ensure that all static files are present
parent 5f3c13da
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,6 @@ jobs:
name: run tests
command: |
. venv/bin/activate
python manage.py collectstatic --noinput --verbosity=0
python manage.py check
python manage.py makemigrations --check --noinput --verbosity=1
coverage run --source='hypha' manage.py test
......
......@@ -12,9 +12,7 @@ SECRET_KEY = 'NOT A SECRET'
PROJECTS_ENABLED = True
PROJECTS_AUTO_CREATE = True
# Need this to ensure white noise doesn't kill the speed of testing
# http://whitenoise.evans.io/en/latest/django.html#whitenoise-makes-my-tests-run-slow
WHITENOISE_AUTOREFRESH = True
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
PASSWORD_HASHERS = [
'django.contrib.auth.hashers.MD5PasswordHasher',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment