Old style location urls removed from CourseFixture and CoursePage
This commit is contained in:
committed by
Diana Huang
parent
ff2822cf48
commit
b2ae827fa4
@@ -266,14 +266,14 @@ class CourseFixture(StudioApiFixture):
|
||||
"""
|
||||
Return the locator string for the course.
|
||||
"""
|
||||
return "slashes:{org}+{number}+{run}".format(**self._course_dict)
|
||||
return "{org}/{number}/{run}".format(**self._course_dict)
|
||||
|
||||
@property
|
||||
def _course_location(self):
|
||||
"""
|
||||
Return the locator string for the course.
|
||||
"""
|
||||
return "location:{org}+{number}+{run}+course+{run}".format(**self._course_dict)
|
||||
return "i4x://{org}/{number}/course/{run}".format(**self._course_dict)
|
||||
|
||||
@property
|
||||
def _assets_url(self):
|
||||
@@ -287,7 +287,7 @@ class CourseFixture(StudioApiFixture):
|
||||
"""
|
||||
Return the locator string for the course handouts
|
||||
"""
|
||||
return "location:{org}+{number}+{run}+course_info+handouts".format(**self._course_dict)
|
||||
return "i4x://{org}/{number}/course_info/handouts".format(**self._course_dict)
|
||||
|
||||
def _create_course(self):
|
||||
"""
|
||||
|
||||
@@ -34,5 +34,5 @@ class CoursePage(PageObject):
|
||||
"""
|
||||
Construct a URL to the page within the course.
|
||||
"""
|
||||
course_key = "slashes:{course_org}+{course_num}+{course_run}".format(**self.course_info)
|
||||
course_key = "{course_org}/{course_num}/{course_run}".format(**self.course_info)
|
||||
return "/".join([BASE_URL, self.url_path, course_key])
|
||||
|
||||
Reference in New Issue
Block a user