From b2ae827fa49f86c27a6350ce2d6d71564665ab0a Mon Sep 17 00:00:00 2001 From: Mat Peterson Date: Wed, 9 Jul 2014 14:34:25 +0000 Subject: [PATCH] Old style location urls removed from CourseFixture and CoursePage --- common/test/acceptance/fixtures/course.py | 6 +++--- common/test/acceptance/pages/studio/course_page.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/test/acceptance/fixtures/course.py b/common/test/acceptance/fixtures/course.py index 87f7b11840..e3266914a5 100644 --- a/common/test/acceptance/fixtures/course.py +++ b/common/test/acceptance/fixtures/course.py @@ -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): """ diff --git a/common/test/acceptance/pages/studio/course_page.py b/common/test/acceptance/pages/studio/course_page.py index a0cf06caf8..fd64b77f26 100644 --- a/common/test/acceptance/pages/studio/course_page.py +++ b/common/test/acceptance/pages/studio/course_page.py @@ -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])