refactor: simplify ProblemBlock inheritance hierarchy (#27363)
Previously, ProblemBlock's implementation was split between CapaMixin/CapaFields (in capa_base.py) and ProblemBlock (in capa_module.py), the former being the base classes of the latter. The split existed for a historical reason: as a former XModule, ProblemBlock was once split between CapaDescriptor (author-facing) and CapaModule (learner-facing). Since ProblemBlock has been converted to being a pure XBlock, the division between the base classes and the block class are no longer necessary nor semantically helpful. docs: Flesh out ProblemBlock's docstring a bit.
This commit is contained in:
@@ -3,7 +3,7 @@ FieldOverride that forces Show Answer values that use Past Due logic to
|
||||
new Show Answer values that remove the Past Due check (keeping the rest intact)
|
||||
"""
|
||||
|
||||
from common.lib.xmodule.xmodule.capa_base import SHOWANSWER
|
||||
from common.lib.xmodule.xmodule.capa_module import SHOWANSWER
|
||||
from lms.djangoapps.courseware.field_overrides import FieldOverrideProvider
|
||||
from openedx.features.course_experience import RELATIVE_DATES_FLAG
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ from django.test.utils import override_settings
|
||||
|
||||
from edx_toggles.toggles.testutils import override_waffle_flag
|
||||
|
||||
from common.lib.xmodule.xmodule.capa_base import SHOWANSWER
|
||||
from common.lib.xmodule.xmodule.capa_module import SHOWANSWER
|
||||
from lms.djangoapps.ccx.tests.test_overrides import inject_field_overrides
|
||||
from lms.djangoapps.courseware.model_data import FieldDataCache
|
||||
from lms.djangoapps.courseware.module_render import get_module
|
||||
|
||||
Reference in New Issue
Block a user