Make progress page work with pure xblocks
[LMS-2349]
This commit is contained in:
@@ -301,6 +301,16 @@ class XModuleMixin(XBlockMixin):
|
||||
"""
|
||||
return self.icon_class
|
||||
|
||||
def has_dynamic_children(self):
|
||||
"""
|
||||
Returns True if this descriptor has dynamic children for a given
|
||||
student when the module is created.
|
||||
|
||||
Returns False if the children of this descriptor are the same
|
||||
children that the module will return for any student.
|
||||
"""
|
||||
return False
|
||||
|
||||
# Functions used in the LMS
|
||||
|
||||
def get_score(self):
|
||||
@@ -657,16 +667,6 @@ class XModuleDescriptor(XModuleMixin, HTMLSnippet, ResourceTemplates, XBlock):
|
||||
self.edited_by = self.edited_on = self.previous_version = self.update_version = self.definition_locator = None
|
||||
self.xmodule_runtime = None
|
||||
|
||||
def has_dynamic_children(self):
|
||||
"""
|
||||
Returns True if this descriptor has dynamic children for a given
|
||||
student when the module is created.
|
||||
|
||||
Returns False if the children of this descriptor are the same
|
||||
children that the module will return for any student.
|
||||
"""
|
||||
return False
|
||||
|
||||
@classmethod
|
||||
def _translate(cls, key):
|
||||
'VS[compat]'
|
||||
|
||||
@@ -447,7 +447,6 @@ class ProgressPageTests(ModuleStoreTestCase):
|
||||
self.section = ItemFactory(category='sequential', parent_location=self.chapter.location)
|
||||
self.vertical = ItemFactory(category='vertical', parent_location=self.section.location)
|
||||
|
||||
@unittest.expectedFailure
|
||||
def test_pure_ungraded_xblock(self):
|
||||
ItemFactory(category='acid', parent_location=self.vertical.location)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user