Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
b2ae827f
Commit
b2ae827f
authored
10 years ago
by
Mat Peterson
Committed by
Diana Huang
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Old style location urls removed from CourseFixture and CoursePage
parent
ff2822cf
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/test/acceptance/fixtures/course.py
+3
-3
3 additions, 3 deletions
common/test/acceptance/fixtures/course.py
common/test/acceptance/pages/studio/course_page.py
+1
-1
1 addition, 1 deletion
common/test/acceptance/pages/studio/course_page.py
with
4 additions
and
4 deletions
common/test/acceptance/fixtures/course.py
+
3
−
3
View file @
b2ae827f
...
...
@@ -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
):
"""
...
...
This diff is collapsed.
Click to expand it.
common/test/acceptance/pages/studio/course_page.py
+
1
−
1
View file @
b2ae827f
...
...
@@ -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
])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment