Rename system_test to get_test_system
This commit is contained in:
@@ -13,7 +13,7 @@ from django.test.client import Client
|
||||
|
||||
from student.tests.factories import UserFactory, CourseEnrollmentFactory
|
||||
from courseware.tests.tests import TEST_DATA_MONGO_MODULESTORE
|
||||
from xmodule.tests import system_test
|
||||
from xmodule.tests import get_test_system
|
||||
from xmodule.modulestore import Location
|
||||
from xmodule.modulestore.django import modulestore
|
||||
from xmodule.modulestore.tests.factories import CourseFactory, ItemFactory
|
||||
@@ -78,7 +78,7 @@ class BaseTestXmodule(ModuleStoreTestCase):
|
||||
)
|
||||
|
||||
location = self.item_descriptor.location
|
||||
system = system_test()
|
||||
system = get_test_system()
|
||||
system.render_template = lambda template, context: context
|
||||
|
||||
self.item_module = self.item_descriptor.module_class(
|
||||
|
||||
@@ -20,7 +20,7 @@ from lxml import etree
|
||||
|
||||
from xmodule.video_module import VideoDescriptor, VideoModule
|
||||
from xmodule.modulestore import Location
|
||||
from xmodule.tests import system_test
|
||||
from xmodule.tests import get_test_system
|
||||
from xmodule.tests.test_logic import LogicTest
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ class VideoFactory(object):
|
||||
|
||||
descriptor = Mock(weight="1")
|
||||
|
||||
system = system_test()
|
||||
system = get_test_system()
|
||||
system.render_template = lambda template, context: context
|
||||
module = VideoModule(system, location, descriptor, model_data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user