Convert Course, Section and Sequence XModules to XBlocks. (#25965)

This commit is contained in:
Usman Khalid
2021-03-02 20:29:33 +05:00
committed by GitHub
parent 2dc4f35ce4
commit dd96a2aa72
68 changed files with 332 additions and 290 deletions

View File

@@ -92,7 +92,7 @@ def course_home_url(course):
Returns the URL for the course's home page.
Arguments:
course (CourseDescriptor): The course being tested.
course (CourseBlock): The course being tested.
"""
return course_home_url_from_string(six.text_type(course.id))
@@ -286,7 +286,7 @@ class TestCourseHomePageAccess(CourseHomePageTestCase):
self.create_user_for_course(self.course, user_type)
# Render the course home page
with mock.patch('xmodule.course_module.CourseDescriptor.course_visibility', course_visibility):
with mock.patch('xmodule.course_module.CourseBlock.course_visibility', course_visibility):
# Test access with anonymous flag and course visibility
with override_waffle_flag(COURSE_ENABLE_UNENROLLED_ACCESS_FLAG, enable_unenrolled_access):
url = course_home_url(self.course)