-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add library roles support for post and update roles
- Loading branch information
1 parent
66c4e35
commit 1c62ff5
Showing
6 changed files
with
158 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
test_utils/edx_platform_mocks/xmodule/modulestore/django.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"""Mock modulestore""" | ||
from opaque_keys.edx.keys import CourseKey | ||
|
||
|
||
class DummyModuleStore: # pylint: disable=too-few-public-methods | ||
"""DUmmy module store class""" | ||
def __init__(self): | ||
self.ids = ['library-v1:org1+11', 'library-v1:org1+22'] | ||
|
||
def get_library_keys(self): | ||
"""mock modulestore library keys method""" | ||
return [CourseKey.from_string(id) for id in self.ids] | ||
|
||
|
||
def modulestore(): | ||
"""mocked modulestore""" | ||
return DummyModuleStore() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters