refactor: replace xmodule.load_item calls with get_block

This commit is contained in:
Arunmozhi
2022-12-05 16:10:05 +05:30
committed by Agrendalath
parent 851eb65d53
commit 59757ee52d
5 changed files with 6 additions and 6 deletions

View File

@@ -448,7 +448,7 @@ class TestMixedModuleStore(CommonMixedModuleStoreSetup):
assert block.course_version == course_version
# ensure that when the block is retrieved from the runtime cache,
# the course version is still present
cached_block = course.runtime.load_item(block.location)
cached_block = course.runtime.get_block(block.location)
assert cached_block.course_version == block.course_version
@ddt.data((ModuleStoreEnum.Type.split, 2, False), (ModuleStoreEnum.Type.mongo, 3, True))