Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
63c5cfda
Commit
63c5cfda
authored
Jul 20, 2013
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add comment and fix mistake in test
parent
1c79b9c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
lms/djangoapps/courseware/module_render.py
+2
-0
lms/djangoapps/courseware/tests/test_views.py
+1
-1
No files found.
lms/djangoapps/courseware/module_render.py
View file @
63c5cfda
...
...
@@ -398,6 +398,8 @@ def get_module_for_descriptor_internal(user, descriptor, model_data_cache, cours
# for studio authored courses (compared to the /course/... format) since it is
# is durable with respect to moves and the author doesn't need to
# know the hierarchy
# NOTE: module_id is empty string here. The 'module_id' will get assigned in the replacement
# function, we just need to specify something to get the reverse() to work
module
.
get_html
=
replace_jump_to_id_urls
(
module
.
get_html
,
course_id
,
reverse
(
'jump_to_id'
,
kwargs
=
{
'course_id'
:
course_id
,
'module_id'
:
''
}))
...
...
lms/djangoapps/courseware/tests/test_views.py
View file @
63c5cfda
...
...
@@ -53,7 +53,7 @@ class TestJumpTo(TestCase):
def
test_jumpto_id_invalid_location
(
self
):
location
=
Location
(
'i4x'
,
'edX'
,
'toy'
,
'NoSuchPlace'
,
None
)
jumpto_url
=
'
%
s/
%
s/jump_to/
%
s'
%
(
'/courses'
,
self
.
course_name
,
location
.
name
)
jumpto_url
=
'
%
s/
%
s/jump_to
_id
/
%
s'
%
(
'/courses'
,
self
.
course_name
,
location
.
name
)
response
=
self
.
client
.
get
(
jumpto_url
)
self
.
assertEqual
(
response
.
status_code
,
404
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment