summaryrefslogtreecommitdiff
path: root/yaksh/test_views.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-04-06 12:38:33 +0530
committerGitHub2017-04-06 12:38:33 +0530
commitad73f7b938b7620ab4be202dc33c699cf5cb4ac5 (patch)
treeadb65fe68d409206a26e23175c9543c12a47c43a /yaksh/test_views.py
parent969cccf998059e0a800276759535a36d3529b3c6 (diff)
parent1a6653567bdf58b5b70e874822cae6a1116b942f (diff)
downloadonline_test-ad73f7b938b7620ab4be202dc33c699cf5cb4ac5.tar.gz
online_test-ad73f7b938b7620ab4be202dc33c699cf5cb4ac5.tar.bz2
online_test-ad73f7b938b7620ab4be202dc33c699cf5cb4ac5.zip
Merge pull request #267 from ankitjavalkar/course-time-window
Multiple changes to Course:
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r--yaksh/test_views.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py
index aa6561a..3fcdde2 100644
--- a/yaksh/test_views.py
+++ b/yaksh/test_views.py
@@ -884,7 +884,9 @@ class TestAddCourse(TestCase):
response = self.client.post(reverse('yaksh:add_course'),
data={'name': 'new_demo_course_1',
'active': True,
- 'enrollment': 'open'
+ 'enrollment': 'open',
+ 'start_enroll_time': '2016-01-10 09:00:15',
+ 'end_enroll_time': '2016-01-15 09:00:15',
}
)
course_list = Course.objects.all().order_by('-id')
@@ -892,7 +894,6 @@ class TestAddCourse(TestCase):
self.assertEqual(new_course.name, 'new_demo_course_1')
self.assertEqual(new_course.enrollment, 'open')
self.assertEqual(new_course.active, True)
-
self.assertEqual(response.status_code, 302)
self.assertRedirects(response, '/exam/manage/')
@@ -1130,7 +1131,7 @@ class TestEnrollRequest(TestCase):
),
follow=True
)
- self.assertRedirects(response, '/exam/manage/')
+ self.assertRedirects(response, '/exam/manage/courses/')
class TestViewAnswerPaper(TestCase):