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
574 B
Python
13 lines
574 B
Python
"""
|
|
(Future home of) Tests for program enrollment writing Python API.
|
|
|
|
Currently, we do not directly unit test the functions in api/writing.py.
|
|
This is okay for now because they are all 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 writing API.
|
|
"""
|
|
from __future__ import absolute_import, unicode_literals
|