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 |
|---|---|---|
| .. | ||
| branding | Loading commit data... | |
| bulk_email | Loading commit data... | |
| ccx | Loading commit data... | |
| certificates | Loading commit data... | |
| class_dashboard | Loading commit data... | |
| commerce | Loading commit data... | |
| course_api | Loading commit data... | |
| course_blocks | Loading commit data... | |
| course_structure_api | Loading commit data... | |
| course_wiki | Loading commit data... | |
| courseware | Loading commit data... | |
| dashboard | Loading commit data... | |
| debug | Loading commit data... | |
| discussion_api | Loading commit data... | |
| django_comment_client | Loading commit data... | |
| edxnotes | Loading commit data... | |
| foldit | Loading commit data... | |
| instructor | Loading commit data... | |
| instructor_analytics | Loading commit data... | |
| instructor_task | Loading commit data... | |
| licenses | Loading commit data... | |
| lms_migration | Loading commit data... | |
| lms_xblock | Loading commit data... | |
| lti_provider | Loading commit data... | |
| mailing | Loading commit data... | |
| mobile_api | Loading commit data... | |
| notes | Loading commit data... | |
| notification_prefs | Loading commit data... | |
| notifier_api | Loading commit data... | |
| oauth2_handler | Loading commit data... | |
| open_ended_grading | Loading commit data... | |
| psychometrics | Loading commit data... | |
| shoppingcart | Loading commit data... | |
| static_template_view | Loading commit data... | |
| staticbook | Loading commit data... | |
| student_account | Loading commit data... | |
| student_profile | Loading commit data... | |
| support | Loading commit data... | |
| survey | Loading commit data... | |
| teams | Loading commit data... | |
| verify_student | Loading commit data... | |
| __init__.py | Loading commit data... |