diff --git a/compressor/test_settings.py b/compressor/test_settings.py index efa498c..99c281b 100644 --- a/compressor/test_settings.py +++ b/compressor/test_settings.py @@ -5,7 +5,7 @@ TEST_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'tests') COMPRESS_CACHE_BACKEND = 'locmem://' -if django.VERSION[:2] > (1, 3): +if django.VERSION[:2] > (1, 2): DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', @@ -37,3 +37,4 @@ JENKINS_TASKS = ( 'django_jenkins.tasks.with_coverage', 'django_jenkins.tasks.django_tests', ) + diff --git a/compressor/tests/offline.py b/compressor/tests/offline.py index c59de2d..0c5f183 100644 --- a/compressor/tests/offline.py +++ b/compressor/tests/offline.py @@ -120,7 +120,7 @@ class OfflineGenerationTestCaseWithContext(OfflineTestCaseMixin, TestCase): super(OfflineGenerationTestCaseWithContext, self).setUp() def tearDown(self): - self.COMPRESS_OFFLINE_CONTEXT = self.old_offline_context + settings.COMPRESS_OFFLINE_CONTEXT = self.old_offline_context super(OfflineGenerationTestCaseWithContext, self).tearDown()