diff options
author | King | 2018-07-13 05:13:04 -0700 |
---|---|---|
committer | GitHub | 2018-07-13 05:13:04 -0700 |
commit | a9e36d0ba393bc709c8bd61b133170e9506aa510 (patch) | |
tree | 710c21594258dff7cfaa22e3ec39191855c2d9a8 /yaksh/test_views.py | |
parent | f0f4a882a796319f766ff67cd3f8133a04054dfd (diff) | |
parent | 4346684d4ed863e5628697ccebe92bbe85fb77a4 (diff) | |
download | online_test-a9e36d0ba393bc709c8bd61b133170e9506aa510.tar.gz online_test-a9e36d0ba393bc709c8bd61b133170e9506aa510.tar.bz2 online_test-a9e36d0ba393bc709c8bd61b133170e9506aa510.zip |
Merge pull request #498 from maheshgudi/release-0.9v0.9.0
release v0.9
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r-- | yaksh/test_views.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py index 899ed31..3520c61 100644 --- a/yaksh/test_views.py +++ b/yaksh/test_views.py @@ -1345,6 +1345,7 @@ class TestAddQuiz(TestCase): self.assertEqual(response.context['quizzes'][0], self.quiz) self.assertTemplateUsed(response, "yaksh/courses.html") + class TestAddAsModerator(TestCase): def setUp(self): self.client = Client() @@ -1399,6 +1400,7 @@ class TestAddAsModerator(TestCase): with self.assertRaises(Http404): add_as_moderator(self.user, 'moderator') + class TestToggleModerator(TestCase): def setUp(self): self.client = Client() @@ -1481,6 +1483,7 @@ class TestToggleModerator(TestCase): self.assertEqual(response.status_code, 404) + class TestAddTeacher(TestCase): def setUp(self): self.client = Client() @@ -2850,7 +2853,8 @@ class TestCourseDetail(TestCase): target_status_code=301) def test_send_mail_to_course_students(self): - """ Check if bulk mail is sent to multiple students enrolled in a course + """ Check if bulk mail is sent to multiple students enrolled + in a course """ self.client.login( username=self.user1.username, @@ -4384,9 +4388,11 @@ class TestShowQuestions(TestCase): data={'file': questions_file, 'upload': 'upload'} ) - summaries = ['Roots of quadratic equation', 'Print Output', + summaries = ['Find the value of n', 'Print Output in Python2.x', 'Adding decimals', 'For Loop over String', - 'Hello World in File', 'Extract columns from files', + 'Hello World in File', + 'Arrange code to convert km to miles', + 'Print Hello, World!', "Square of two numbers", 'Check Palindrome', 'Add 3 numbers', 'Reverse a string' ] @@ -4395,7 +4401,7 @@ class TestShowQuestions(TestCase): user=self.user).count() self.assertEqual(response.status_code, 200) self.assertTemplateUsed(response, 'yaksh/showquestions.html') - self.assertEqual(uploaded_ques, 9) + self.assertEqual(uploaded_ques, 11) f.close() dummy_file = SimpleUploadedFile("test.txt", b"test") response = self.client.post( |