refactor: rename get_displayable_items and displayable_items

This commit is contained in:
Arunmozhi
2022-12-01 12:52:46 +05:30
committed by Agrendalath
parent d417a7561f
commit 851eb65d53
13 changed files with 71 additions and 71 deletions

View File

@@ -91,7 +91,7 @@ class ConditionalFactory:
child_descriptor.visible_to_staff_only = False
child_descriptor._xmodule.student_view.return_value = Fragment(content='<p>This is a secret</p>') # lint-amnesty, pylint: disable=protected-access
child_descriptor.student_view = child_descriptor._xmodule.student_view # lint-amnesty, pylint: disable=protected-access
child_descriptor.displayable_items.return_value = [child_descriptor]
child_descriptor.displayable_blocks.return_value = [child_descriptor]
child_descriptor.runtime = descriptor_system
child_descriptor.xmodule_runtime = get_test_system()
child_descriptor.render = lambda view, context=None: descriptor_system.render(child_descriptor, view, context)