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
cc34a0f0
Commit
cc34a0f0
authored
Jul 11, 2014
by
Joe Blaylock
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #73 from Stanford-Online/stv/rc-comments
Remove commented-out deprecated lines
parents
c05ad2a4
84e831d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
cms/djangoapps/contentstore/tests/test_utilities.py
+0
-3
No files found.
cms/djangoapps/contentstore/tests/test_utilities.py
View file @
cc34a0f0
""" Unit tests for utility methods in views.py. """
""" Unit tests for utility methods in views.py. """
from
django.conf
import
settings
from
django.conf
import
settings
#from contentstore.utils import get_modulestore
from
xmodule.modulestore.django
import
modulestore
from
xmodule.modulestore.django
import
modulestore
from
contentstore.utils
import
reverse_course_url
from
contentstore.utils
import
reverse_course_url
from
contentstore.views.utility
import
expand_utility_action_url
from
contentstore.views.utility
import
expand_utility_action_url
...
@@ -50,8 +49,6 @@ class UtilitiesTestCase(CourseTestCase):
...
@@ -50,8 +49,6 @@ class UtilitiesTestCase(CourseTestCase):
# Now delete the utilities from the course and verify they get repopulated (for courses
# Now delete the utilities from the course and verify they get repopulated (for courses
# created before utilities were introduced).
# created before utilities were introduced).
with
mock
.
patch
(
'django.conf.settings.COURSE_UTILITIES'
,
[]):
with
mock
.
patch
(
'django.conf.settings.COURSE_UTILITIES'
,
[]):
#modulestore = get_modulestore(self.course.location)
#modulestore.update_item(self.course, self.user.id)
modulestore
()
.
update_item
(
self
.
course
,
self
.
user
.
id
)
modulestore
()
.
update_item
(
self
.
course
,
self
.
user
.
id
)
self
.
assertEqual
(
self
.
get_persisted_utilities
(),
[])
self
.
assertEqual
(
self
.
get_persisted_utilities
(),
[])
...
...
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