diff options
author | ankitjavalkar | 2017-03-30 18:10:09 +0530 |
---|---|---|
committer | ankitjavalkar | 2017-03-31 11:24:06 +0530 |
commit | 171a82aa3ef07fc9344c8c5b42542bec0a3ca5ab (patch) | |
tree | 5180d1920b1d936aeeadb3f07760d4d4db08e0d6 /yaksh/test_views.py | |
parent | 734ad94d177be8ad400eb6f97e98612ce099e56a (diff) | |
download | online_test-171a82aa3ef07fc9344c8c5b42542bec0a3ca5ab.tar.gz online_test-171a82aa3ef07fc9344c8c5b42542bec0a3ca5ab.tar.bz2 online_test-171a82aa3ef07fc9344c8c5b42542bec0a3ca5ab.zip |
Multiple changes to Course:
- Allow a start and end time for Course enrollment
- Allow Course to be editable
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r-- | yaksh/test_views.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py index aa6561a..4e262dc 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/') |