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
c05ad2a4
Commit
c05ad2a4
authored
Jul 11, 2014
by
Joe Blaylock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing the last (?) unit test failure in rc
parent
ecc619c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
cms/djangoapps/contentstore/tests/test_utilities.py
+5
-3
No files found.
cms/djangoapps/contentstore/tests/test_utilities.py
View file @
c05ad2a4
""" 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 contentstore.utils import get_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
from
xmodule.modulestore.tests.factories
import
CourseFactory
from
xmodule.modulestore.tests.factories
import
CourseFactory
...
@@ -49,8 +50,9 @@ class UtilitiesTestCase(CourseTestCase):
...
@@ -49,8 +50,9 @@ 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 = 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
(),
[])
def
test_get_utilities_html
(
self
):
def
test_get_utilities_html
(
self
):
...
...
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