Old style location urls removed from CourseFixture and CoursePage

This commit is contained in:
Mat Peterson
2014-07-09 14:34:25 +00:00
committed by Diana Huang
parent ff2822cf48
commit b2ae827fa4
2 changed files with 4 additions and 4 deletions

View File

@@ -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):
"""

View File

@@ -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])