Commit b2ae827f by Mat Peterson Committed by Diana Huang

Old style location urls removed from CourseFixture and CoursePage

parent ff2822cf
...@@ -266,14 +266,14 @@ class CourseFixture(StudioApiFixture): ...@@ -266,14 +266,14 @@ class CourseFixture(StudioApiFixture):
""" """
Return the locator string for the course. 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 @property
def _course_location(self): def _course_location(self):
""" """
Return the locator string for the course. 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 @property
def _assets_url(self): def _assets_url(self):
...@@ -287,7 +287,7 @@ class CourseFixture(StudioApiFixture): ...@@ -287,7 +287,7 @@ class CourseFixture(StudioApiFixture):
""" """
Return the locator string for the course handouts 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): def _create_course(self):
""" """
......
...@@ -34,5 +34,5 @@ class CoursePage(PageObject): ...@@ -34,5 +34,5 @@ class CoursePage(PageObject):
""" """
Construct a URL to the page within the course. 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]) return "/".join([BASE_URL, self.url_path, course_key])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment