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:
0x29a
2022-12-23 15:27:31 +01:00
committed by Agrendalath
parent 611563600c
commit 9d8375ff99
55 changed files with 432 additions and 443 deletions

View File

@@ -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,