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
e687f1e7
Commit
e687f1e7
authored
Apr 18, 2016
by
Ayub-khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-Adressed all comments
parent
ef70d017
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
cms/djangoapps/contentstore/views/tests/test_tabs.py
+1
-1
cms/djangoapps/contentstore/views/tests/test_user.py
+1
-1
common/djangoapps/util/tests/test_course_key_utils.py
+2
-3
No files found.
cms/djangoapps/contentstore/views/tests/test_tabs.py
View file @
e687f1e7
...
...
@@ -194,7 +194,7 @@ class TabsPageTests(CourseTestCase):
def
test_invalid_course_id
(
self
):
""" Asserts that Http404 is raised when the course id is not valid. """
invalid_tab_url
=
reverse_course_url
(
'tabs_handler'
,
"/some.invalid.key/
TTT/CS01/
2015_T0"
)
invalid_tab_url
=
reverse_course_url
(
'tabs_handler'
,
"/some.invalid.key/
course-v1:TTT+CS01+
2015_T0"
)
with
self
.
assertRaises
(
Http404
):
self
.
client
.
get
(
invalid_tab_url
)
...
...
cms/djangoapps/contentstore/views/tests/test_user.py
View file @
e687f1e7
...
...
@@ -320,7 +320,7 @@ class UsersTestCase(CourseTestCase):
def
test_invalid_course_id
(
self
):
""" Asserts that Http404 is raised when the course id is not valid. """
wrong_url
=
reverse_course_url
(
'course_team_handler'
,
"/some.invalid.key/
TTT/CS01/
2015_T0"
,
'course_team_handler'
,
"/some.invalid.key/
course-v1:TTT+CS01+
2015_T0"
,
kwargs
=
{
'email'
:
self
.
ext_user
.
email
}
)
with
self
.
assertRaises
(
Http404
):
...
...
common/djangoapps/util/tests/test_course_key_utils.py
View file @
e687f1e7
"""
Tests for util.course_key_utils
"""
import
ddt
import
unittest
from
util.course_key_utils
import
course_key_from_string_or_404
from
opaque_keys.edx.keys
import
CourseKey
from
django.http
import
Http404
import
ddt
import
unittest
@ddt.ddt
...
...
@@ -21,7 +21,6 @@ class TestFromStringOr404(unittest.TestCase):
"""
Tests course_key_from_string_or_404 for valid split style course keys and mongo style course keys.
"""
from
nose.tools
import
set_trace
;
set_trace
()
self
.
assertEquals
(
CourseKey
.
from_string
(
valid_course_key
),
course_key_from_string_or_404
(
valid_course_key
)
...
...
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