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
a782c92c
Commit
a782c92c
authored
Jul 30, 2014
by
Joe Blaylock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolving some test failures
parent
dcb5b27c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
cms/djangoapps/contentstore/tests/test_utilities.py
+4
-2
No files found.
cms/djangoapps/contentstore/tests/test_utilities.py
View file @
a782c92c
...
@@ -40,7 +40,8 @@ class UtilitiesTestCase(CourseTestCase):
...
@@ -40,7 +40,8 @@ class UtilitiesTestCase(CourseTestCase):
response
=
self
.
client
.
get
(
self
.
utilities_url
)
response
=
self
.
client
.
get
(
self
.
utilities_url
)
self
.
assertContains
(
response
,
"Bulk Operations"
)
self
.
assertContains
(
response
,
"Bulk Operations"
)
# Verify expansion of action URL happened.
# Verify expansion of action URL happened.
self
.
assertContains
(
response
,
'/utility/captions/slashes:mitX+333+Utilities_Course'
)
#self.assertContains(response, '/utility/captions/slashes:mitX+333+Utilities_Course')
self
.
assertContains
(
response
,
'/utility/captions/mitX/333/Utilities_Course'
)
# Verify persisted utility does NOT have expanded URL.
# Verify persisted utility does NOT have expanded URL.
utility_0
=
self
.
get_persisted_utilities
()[
0
]
utility_0
=
self
.
get_persisted_utilities
()[
0
]
self
.
assertEqual
(
'utility_captions_handler'
,
get_action_url
(
utility_0
,
0
))
self
.
assertEqual
(
'utility_captions_handler'
,
get_action_url
(
utility_0
,
0
))
...
@@ -104,7 +105,8 @@ class UtilitiesTestCase(CourseTestCase):
...
@@ -104,7 +105,8 @@ class UtilitiesTestCase(CourseTestCase):
# Verify no side effect in the original list.
# Verify no side effect in the original list.
self
.
assertEqual
(
get_action_url
(
utility
,
index
),
stored
)
self
.
assertEqual
(
get_action_url
(
utility
,
index
),
stored
)
test_expansion
(
settings
.
COURSE_UTILITIES
[
0
],
0
,
'utility_captions_handler'
,
'/utility/captions/slashes:mitX+333+Utilities_Course'
)
#test_expansion(settings.COURSE_UTILITIES[0], 0, 'utility_captions_handler', '/utility/captions/slashes:mitX+333+Utilities_Course')
test_expansion
(
settings
.
COURSE_UTILITIES
[
0
],
0
,
'utility_captions_handler'
,
'/utility/captions/mitX/333/Utilities_Course'
)
def
get_first_item
(
utility
):
def
get_first_item
(
utility
):
...
...
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