Skip to content
Snippets Groups Projects
Commit b2ae827f authored by Mat Peterson's avatar Mat Peterson Committed by Diana Huang
Browse files

Old style location urls removed from CourseFixture and CoursePage

parent ff2822cf
No related merge requests found
......@@ -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])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment