refactor: rename module -> block within lms/djangoapps/courseware
Also, removed unused `_has_access_xmodule` methid from `lms/djangoapps/courseware/access.py`.
This commit is contained in:
@@ -10,7 +10,7 @@ from unittest.mock import MagicMock, patch
|
||||
import pytz
|
||||
|
||||
from lms.djangoapps.courseware.model_data import FieldDataCache
|
||||
from lms.djangoapps.courseware.module_render import get_module
|
||||
from lms.djangoapps.courseware.block_render import get_block
|
||||
from xmodule.graders import ProblemScore # lint-amnesty, pylint: disable=wrong-import-order
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ def answer_problem(course, request, problem, score=1, max_value=1):
|
||||
course,
|
||||
depth=2
|
||||
)
|
||||
module = get_module(
|
||||
module = get_block(
|
||||
user,
|
||||
request,
|
||||
problem.scope_ids.usage_id,
|
||||
|
||||
Reference in New Issue
Block a user