diff options
author | adityacp | 2018-01-19 15:58:06 +0530 |
---|---|---|
committer | adityacp | 2018-01-19 17:01:44 +0530 |
commit | bfc3f08d5da08f774e76aa169a50f8e7847ff6ed (patch) | |
tree | 7405617e9351e724db5269e55d915ad6cbaff01d /yaksh/test_views.py | |
parent | 6da1f77a6a1a2bffb85d5395f2703f186b18cb4a (diff) | |
download | online_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.py | 2 |
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') |