diff options
author | adityacp | 2020-02-19 11:09:16 +0530 |
---|---|---|
committer | adityacp | 2020-02-19 11:09:16 +0530 |
commit | f2d1d8fe76109a5b7c53e68de2bd86230874ba90 (patch) | |
tree | 3ca8304202935ae260022aea8a216554365ded08 /yaksh/test_views.py | |
parent | 4583cdbe0f19c9b133fd2614ec8077fc972182fb (diff) | |
download | online_test-f2d1d8fe76109a5b7c53e68de2bd86230874ba90.tar.gz online_test-f2d1d8fe76109a5b7c53e68de2bd86230874ba90.tar.bz2 online_test-f2d1d8fe76109a5b7c53e68de2bd86230874ba90.zip |
Change views, test_views, templates
- Change message text in duplicate course view function
- Remove clone course option from course detail page and show it in
courses page
- Show download course option in courses page
- Show message for search results in student dashboard
- Fix views tests
- Show collapse requested students list
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r-- | yaksh/test_views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py index 569b468..58c6633 100644 --- a/yaksh/test_views.py +++ b/yaksh/test_views.py @@ -448,7 +448,7 @@ class TestStudentDashboard(TestCase): } self.assertEqual(response.status_code, 200) self.assertTemplateUsed(response, "yaksh/quizzes_user.html") - self.assertEqual(response.context['title'], 'Search') + self.assertEqual(response.context['title'], 'Search Results') self.assertEqual(response.context['courses'][0], courses_in_context) @@ -2121,7 +2121,7 @@ class TestCourses(TestCase): follow=True ) err_msg = "You do not have permissions" - self.assertEqual(response.status_code, 404) + self.assertEqual(response.status_code, 200) messages = [m.message for m in get_messages(response.wsgi_request)] self.assertIn(err_msg, messages[0]) |