This reverts commit a67b9f70a16a0f16a842aad84754b245a2480b5f, reinstating commit cf78660ed35712f9bb7c112f70411179070d7382. The original commit was reverted because I thought I found bugs in it while verifying it on Stage, but it turns out that it was simply misconfigured Stage data that causing errors. The original commit's message has has been copied below: This commit completes the program_enrollments LMS app Python API for the time being. It does the following: * Add bulk-lookup of users by external key in api/reading.py * Add bulk-writing of program enrollments in api/writing.py * Move grade-reading to api/grades.py * Refactor api/linking.py to use api/writing.py * Refactor signals.py to use api/linking.py * Update rest_api/v1/views.py to utilize all these changes * Update linking management command and support tool to use API * Remove outdated tests from test_models.py * Misc. cleanup EDUCATOR-4321
13 lines
570 B
Python
13 lines
570 B
Python
"""
|
|
(Future home of) Tests for program_enrollments grade-reading Python API.
|
|
|
|
Currently, we do not directly unit test `load_program_course_grades`.
|
|
This is okay for now because it is used in
|
|
`rest_api.v1.views` and is thus tested through `rest_api.v1.tests.test_views`.
|
|
Eventually it would be good to directly test the Python API function and just use
|
|
mocks in the view tests.
|
|
This file serves as a placeholder and reminder to do that the next time there
|
|
is development on the program_enrollments grades API.
|
|
"""
|
|
from __future__ import absolute_import, unicode_literals
|