summaryrefslogtreecommitdiff
path: root/yaksh/test_views.py
diff options
context:
space:
mode:
authoradityacp2018-01-19 15:58:06 +0530
committeradityacp2018-01-19 17:01:44 +0530
commitbfc3f08d5da08f774e76aa169a50f8e7847ff6ed (patch)
tree7405617e9351e724db5269e55d915ad6cbaff01d /yaksh/test_views.py
parent6da1f77a6a1a2bffb85d5395f2703f186b18cb4a (diff)
downloadonline_test-bfc3f08d5da08f774e76aa169a50f8e7847ff6ed.tar.gz
online_test-bfc3f08d5da08f774e76aa169a50f8e7847ff6ed.tar.bz2
online_test-bfc3f08d5da08f774e76aa169a50f8e7847ff6ed.zip
Change in views and templates
- Add active field for exercise form - Fix views test case for creating exercise - Show question paper for exercise
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r--yaksh/test_views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py
index dad5e89..0b43079 100644
--- a/yaksh/test_views.py
+++ b/yaksh/test_views.py
@@ -1230,6 +1230,7 @@ class TestAddQuiz(TestCase):
kwargs={'quiz_id': self.exercise.id}),
data={
'description': 'updated demo exercise',
+ 'active': True
}
)
@@ -1257,6 +1258,7 @@ class TestAddQuiz(TestCase):
response = self.client.post(reverse('yaksh:add_exercise'),
data={
'description': "Demo Exercise",
+ 'active': True
}
)
quiz_list = Quiz.objects.all().order_by('-id')