-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into a-asad/video-player-logging-fix
- Loading branch information
Showing
16 changed files
with
251 additions
and
409 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1990,6 +1990,15 @@ def test_add_notenrolled_username_autoenroll(self): | |
self.add_notenrolled(response, self.notenrolled_student.username) | ||
assert CourseEnrollment.is_enrolled(self.notenrolled_student, self.course.id) | ||
|
||
def test_add_notenrolled_username_autoenroll_with_multiple_users(self): | ||
url = reverse('bulk_beta_modify_access', kwargs={'course_id': str(self.course.id)}) | ||
identifiers = (f"[email protected], " | ||
f"[email protected]\n[email protected]\r [email protected]\r, [email protected], " | ||
f"{self.notenrolled_student.username}" | ||
) | ||
response = self.client.post(url, {'identifiers': identifiers, 'action': 'add', 'email_students': False, 'auto_enroll': True}) # lint-amnesty, pylint: disable=line-too-long | ||
assert 6, len(json.loads(response.content.decode())['results']) | ||
|
||
@ddt.data('http', 'https') | ||
def test_add_notenrolled_with_email(self, protocol): | ||
url = reverse('bulk_beta_modify_access', kwargs={'course_id': str(self.course.id)}) | ||
|
Oops, something went wrong.