Skip to content

Commit

Permalink
Add middleware to the test settings (for Django 1.7 compatibility)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjumbewu committed Jan 6, 2015
1 parent 1af1e31 commit a00b8c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def rel_path(*subs):
'compressor.finders.CompressorFinder',
)

MIDDLEWARE_CLASSES = ()

SITE_ID = 1
ROOT_URLCONF = 'project.urls'
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
4 changes: 3 additions & 1 deletion tests/project/settings_defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def rel_path(*subs):
'django.core.context_processors.request',
)

SECRET_KEY = 'testkey'
STATIC_URL = '/static/'
STATICFILES_DIRS = rel_path('static'),
STATICFILES_FINDERS = (
Expand All @@ -45,7 +46,8 @@ def rel_path(*subs):
'compressor.finders.CompressorFinder',
)

SECRET_KEY = 'testkey'
MIDDLEWARE_CLASSES = ()

SITE_ID = 1
ROOT_URLCONF = 'project.urls'
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
2 changes: 2 additions & 0 deletions tests/project/settings_handlebars.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def rel_path(*subs):
'compressor.finders.CompressorFinder',
)

MIDDLEWARE_CLASSES = ()

SITE_ID = 1
ROOT_URLCONF = 'project.urls'
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'

0 comments on commit a00b8c8

Please sign in to comment.