From 3486fd8a0ee6487fd09ffebc2730f409675042d6 Mon Sep 17 00:00:00 2001
From: Todd Dembrey <todd.dembrey@torchbox.com>
Date: Tue, 25 Feb 2020 17:05:11 +0000
Subject: [PATCH] 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
---
 .circleci/config.yml   | 1 -
 hypha/settings/test.py | 4 +---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index 8e661f3cb..d2e3587c0 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -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
diff --git a/hypha/settings/test.py b/hypha/settings/test.py
index d3a4abdea..610dc3b03 100644
--- a/hypha/settings/test.py
+++ b/hypha/settings/test.py
@@ -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',
-- 
GitLab