Failing test for create_item populating edit information.

This commit is contained in:
cahrens
2014-07-23 10:44:37 -04:00
parent 49e4ffbeb0
commit 327a97f7c6

View File

@@ -1011,8 +1011,7 @@ class MongoModuleStore(ModuleStoreDraftAndPublished, ModuleStoreWriteBase):
xblock = self.create_xmodule(location, **kwargs)
xblock = self.update_item(xblock, user_id, allow_not_found=True)
# Retrieve the item from the store so that it has edit info attributes
return self.get_item(xblock.location)
return xblock
def create_child(self, user_id, parent_usage_key, block_type, block_id=None, **kwargs):
"""