-
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 new API for learner courses information
- Loading branch information
Showing
17 changed files
with
561 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""One-line description for README and other doc files.""" | ||
|
||
__version__ = '0.2.1' | ||
__version__ = '0.3.1' |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"""completion Mocks""" | ||
from fake_models.models import BlockCompletion # pylint: disable=unused-import |
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,22 @@ | ||
"""Mocks""" | ||
|
||
|
||
def get_course_blocks_completion_summary(course_key, user): # pylint: disable=unused-argument | ||
"""get_course_blocks_completion_summary Mock""" | ||
return None | ||
|
||
|
||
def get_block_structure_manager(course_key): # pylint: disable=unused-argument | ||
"""get_block_structure_manager Mock""" | ||
class Dummy: # pylint: disable=too-few-public-methods | ||
"""dummy class""" | ||
def get_collected(self): # pylint: disable=no-self-use | ||
"""get_collected""" | ||
return [] | ||
|
||
return Dummy() | ||
|
||
|
||
def get_certificates_for_user_by_course_keys(user, course_keys): # pylint: disable=unused-argument | ||
"""get_certificates_for_user_by_course_keys Mock""" | ||
return {} |
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
2 changes: 2 additions & 0 deletions
2
test_utils/edx_platform_mocks/lms/djangoapps/certificates/api.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,2 @@ | ||
"""edx-platform Mocks""" | ||
from fake_models.functions import get_certificates_for_user_by_course_keys # pylint: disable=unused-import |
2 changes: 2 additions & 0 deletions
2
test_utils/edx_platform_mocks/lms/djangoapps/courseware/courses.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,2 @@ | ||
"""edx-platform Mock""" | ||
from fake_models.functions import get_course_blocks_completion_summary # pylint: disable=unused-import |
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,2 @@ | ||
"""edx-platform Mock""" | ||
from fake_models.models import CourseGradeFactory # pylint: disable=unused-import |
2 changes: 2 additions & 0 deletions
2
test_utils/edx_platform_mocks/openedx/core/djangoapps/content/block_structure/api.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,2 @@ | ||
"""edx-platform Mocks""" | ||
from fake_models.functions import get_block_structure_manager # pylint: disable=unused-import |
Oops, something went wrong.