refactor: convert course_module term to course_block
This commit is contained in:
@@ -419,7 +419,7 @@ class ItemFactory(XModuleFactory):
|
||||
module.submission_end = submission_end
|
||||
store.update_item(module, user_id)
|
||||
|
||||
# VS[compat] cdodge: This is a hack because static_tabs also have references from the course module, so
|
||||
# VS[compat] cdodge: This is a hack because static_tabs also have references from the course block, so
|
||||
# if we add one then we need to also add it to the policy information (i.e. metadata)
|
||||
# we should remove this once we can break this reference from the course to static tabs
|
||||
if category == 'static_tab':
|
||||
|
||||
@@ -1308,9 +1308,9 @@ class TestItemCrud(SplitModuleTest):
|
||||
)
|
||||
|
||||
# add new child to old parent in continued (leave off version_guid)
|
||||
course_module_locator = new_course.location.version_agnostic()
|
||||
course_block_locator = new_course.location.version_agnostic()
|
||||
new_ele = modulestore().create_child(
|
||||
user, course_module_locator, 'chapter',
|
||||
user, course_block_locator, 'chapter',
|
||||
fields={'display_name': 'chapter 4'},
|
||||
)
|
||||
assert new_ele.update_version != course_block_update_version
|
||||
|
||||
Reference in New Issue
Block a user