Acceptance tests for grades download
Refactor instructor dash acceptance tests. Add additional acceptance tests for buttons on 'Data Download' tab. LMS-58
This commit is contained in:
@@ -54,6 +54,11 @@ def register_by_course_id(course_id, username='robot', password='test', is_staff
|
||||
|
||||
@world.absorb
|
||||
def enroll_user(user, course_id):
|
||||
# Activate user
|
||||
registration = world.RegistrationFactory(user=user)
|
||||
registration.register(user)
|
||||
registration.activate()
|
||||
# Enroll them in the course
|
||||
CourseEnrollment.enroll(user, course_id)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user