From 7830bb203f64349365a7431c6492d1d9cb2b3ab0 Mon Sep 17 00:00:00 2001 From: Will Daly Date: Fri, 1 Nov 2013 12:28:11 -0400 Subject: [PATCH] Acceptance tests use asset pipeline --- cms/envs/acceptance.py | 6 ++++++ lms/envs/acceptance.py | 7 +++++++ requirements/edx/github.txt | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/cms/envs/acceptance.py b/cms/envs/acceptance.py index 7fb714a57d..1a9621a221 100644 --- a/cms/envs/acceptance.py +++ b/cms/envs/acceptance.py @@ -80,6 +80,12 @@ DATABASES = { } } +# Enable asset pipeline +# Our fork of django-pipeline uses `PIPELINE` instead of `PIPELINE_ENABLED` +# PipelineFinder is explained here: http://django-pipeline.readthedocs.org/en/1.1.24/storages.html +PIPELINE = True +STATICFILES_FINDERS += ('pipeline.finders.PipelineFinder', ) + # Use the auto_auth workflow for creating users and logging them in MITX_FEATURES['AUTOMATIC_AUTH_FOR_TESTING'] = True diff --git a/lms/envs/acceptance.py b/lms/envs/acceptance.py index e1976f32e7..ec7c74c680 100644 --- a/lms/envs/acceptance.py +++ b/lms/envs/acceptance.py @@ -82,6 +82,13 @@ TRACKING_BACKENDS.update({ } }) + +# Enable asset pipeline +# Our fork of django-pipeline uses `PIPELINE` instead of `PIPELINE_ENABLED` +# PipelineFinder is explained here: http://django-pipeline.readthedocs.org/en/1.1.24/storages.html +PIPELINE = True +STATICFILES_FINDERS += ('pipeline.finders.PipelineFinder', ) + BULK_EMAIL_DEFAULT_FROM_EMAIL = "test@test.org" # Forums are disabled in test.py to speed up unit tests, but we do not have diff --git a/requirements/edx/github.txt b/requirements/edx/github.txt index ee77501333..3f6a73c409 100644 --- a/requirements/edx/github.txt +++ b/requirements/edx/github.txt @@ -8,7 +8,7 @@ # Third-party: -e git+https://github.com/edx/django-staticfiles.git@6d2504e5c8#egg=django-staticfiles --e git+https://github.com/edx/django-pipeline.git#egg=django-pipeline +-e git+https://github.com/edx/django-pipeline.git@88ec8a011e481918fdc9d2682d4017c835acd8be#egg=django-pipeline -e git+https://github.com/edx/django-wiki.git@41815e2ef1b0323f92900f8e60711b0f0c37766b#egg=django-wiki -e git+https://github.com/edx/lettuce.git@503fe2d2599290c45b021d6c424ab5ea899e42be#egg=lettuce -e git+https://github.com/dementrock/pystache_custom.git@776973740bdaad83a3b029f96e415a7d1e8bec2f#egg=pystache_custom-dev