Studio breaks DEFAULT_COURSE_ABOUT_IMAGE_URL is not set in settings in cms

ECOM-3384
This commit is contained in:
Awais Jibran
2016-01-14 14:40:42 +05:00
parent 039e6cdfe6
commit 8a6699a46d
8 changed files with 45 additions and 29 deletions

View File

@@ -3,8 +3,9 @@ Tests for block_cache.py
"""
from django.core.cache import get_cache
from django.conf import settings
from mock import patch
from unittest import TestCase
from unittest import TestCase, skipUnless
from ..block_cache import get_blocks
from ..exceptions import TransformerException
@@ -96,6 +97,7 @@ class TestBlockCache(TestCase, ChildrenMapTestMixin):
transformers=self.transformers,
)
@skipUnless(settings.ROOT_URLCONF == 'lms.urls', 'Test only valid in lms')
def test_block_caching(self, mock_available_transforms):
mock_available_transforms.return_value = {transformer.name(): transformer for transformer in self.transformers}