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
3a09af07
Commit
3a09af07
authored
Jan 29, 2015
by
muzaffaryousaf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing the broken tests.
TNL-1185
parent
c461541d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
cms/djangoapps/contentstore/tests/test_libraries.py
+3
-1
No files found.
cms/djangoapps/contentstore/tests/test_libraries.py
View file @
3a09af07
...
...
@@ -80,7 +80,9 @@ class LibraryTestCase(ModuleStoreTestCase):
of a LibraryContent block
"""
if
'user'
not
in
lib_content_block
.
runtime
.
_services
:
# pylint: disable=protected-access
lib_content_block
.
runtime
.
_services
[
'user'
]
=
Mock
(
user_id
=
self
.
user
.
id
)
# pylint: disable=protected-access
mocked_user_service
=
Mock
(
user_id
=
self
.
user
.
id
)
.
get_current_user
.
return_value
=
{}
lib_content_block
.
runtime
.
_services
[
'user'
]
=
mocked_user_service
# pylint: disable=protected-access
handler_url
=
reverse_usage_url
(
'component_handler'
,
lib_content_block
.
location
,
...
...
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