Permalink
Browse files

settings and plugin tests

  • Loading branch information...
1 parent c96bfba commit 452cfa7b845d41496bdded135c19a412e5b7b80d @digi604 committed Nov 28, 2012
Showing with 15 additions and 1 deletion.
  1. +12 −1 cms/test_utils/cli.py
  2. +3 −0 test_requirements/plugin_tests.txt
View
@@ -8,7 +8,16 @@
urlpatterns = []
DJANGO_1_3 = LooseVersion(django.get_version()) < LooseVersion('1.4')
+configured = False
+
def configure(**extra):
+
+ global configured
+ if configured:
+ return
+ else:
+ configured = True
+
from django.conf import settings
os.environ['DJANGO_SETTINGS_MODULE'] = 'cms.test_utils.cli'
defaults = dict(
@@ -94,8 +103,9 @@ def configure(**extra):
'cms.test_utils.project.pluginapp.plugins.extra_context',
'cms.test_utils.project.fakemlng',
'cms.test_utils.project.fileapp',
- #'djangocms_column',
+ 'djangocms_column',
'djangocms_text_ckeditor',
+ 'djangocms_link',
'south',
'reversion',
'sekizai',
@@ -221,6 +231,7 @@ def configure(**extra):
if DJANGO_1_3:
defaults['INSTALLED_APPS'].append("i18nurls")
defaults['MIDDLEWARE_CLASSES'][4] = 'i18nurls.middleware.LocaleMiddleware'
+ settings._wrapped = None
else:
from django.utils.functional import empty
settings._wrapped = empty
@@ -0,0 +1,3 @@
+-e git+git@github.com:divio/djangocms-column.git#egg=djangocms_column-dev
+-e git+git@github.com:divio/djangocms-text-ckeditor.git#egg=djangocms_text_ckeditor-dev
+-e git+git@github.com:divio/djangocms-link.git#egg=djangocms_link-dev

0 comments on commit 452cfa7

Please sign in to comment.