MA-635 Block Mobile Content for unfulfilled milestones
Previously, the mobile api did not check for pre-requisite courses or entrance exams. This change checks for these milestones and then returns course content accordingly.
Showing
- common/djangoapps/util/milestones_helpers.py 12 additions, 2 deletionscommon/djangoapps/util/milestones_helpers.py
- common/djangoapps/util/tests/test_milestones_helpers.py 10 additions, 0 deletionscommon/djangoapps/util/tests/test_milestones_helpers.py
- lms/djangoapps/courseware/access.py 10 additions, 2 deletionslms/djangoapps/courseware/access.py
- lms/djangoapps/courseware/tests/helpers.py 1 addition, 3 deletionslms/djangoapps/courseware/tests/helpers.py
- lms/djangoapps/courseware/tests/test_entrance_exam.py 146 additions, 250 deletionslms/djangoapps/courseware/tests/test_entrance_exam.py
- lms/djangoapps/mobile_api/test_milestones.py 137 additions, 0 deletionslms/djangoapps/mobile_api/test_milestones.py
- lms/djangoapps/mobile_api/testutils.py 7 additions, 4 deletionslms/djangoapps/mobile_api/testutils.py
- lms/djangoapps/mobile_api/users/tests.py 1 addition, 0 deletionslms/djangoapps/mobile_api/users/tests.py
- lms/djangoapps/mobile_api/utils.py 27 additions, 9 deletionslms/djangoapps/mobile_api/utils.py
- lms/envs/test.py 0 additions, 6 deletionslms/envs/test.py
Loading
Please register or sign in to comment