Name |
Last commit
|
Last update |
---|---|---|
.. | ||
course_info | ||
migrations | ||
social_facebook | ||
users | ||
video_outlines | ||
__init__.py | ||
admin.py | ||
errors.py | ||
models.py | ||
test_milestones.py | ||
tests.py | ||
testutils.py | ||
urls.py | ||
utils.py |
There are 3 main changes in this commit: * CohortFactory now sets up memberships properly, so consuming tests do not need to explicitly touch CourseUserGroup.users to add() users. * test_get_cohort_sql_queries has been updated to 3 and 9 queries when using and not using the cache, respectively. This is needed due to each operation needing an extra queery to get the CourseUserGroup from the CohortMembership. * Adding remove_user_from_cohort(), the counterpart to add_user_to_cohort(). This is also to keep tests from touching the users field directly, and keep CohortMembership data in sync.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
course_info | Loading commit data... | |
migrations | Loading commit data... | |
social_facebook | Loading commit data... | |
users | Loading commit data... | |
video_outlines | Loading commit data... | |
__init__.py | Loading commit data... | |
admin.py | Loading commit data... | |
errors.py | Loading commit data... | |
models.py | Loading commit data... | |
test_milestones.py | Loading commit data... | |
tests.py | Loading commit data... | |
testutils.py | Loading commit data... | |
urls.py | Loading commit data... | |
utils.py | Loading commit data... |