summaryrefslogtreecommitdiff
path: root/yaksh/test_views.py
diff options
context:
space:
mode:
authoradityacp2016-08-25 16:29:29 +0530
committeradityacp2016-08-25 16:29:29 +0530
commit40dc5e38c23d5c99475a6e9bbb811c5bb9b5d016 (patch)
treeff8ce2c4c4ebae943820411dbea773236fa948bf /yaksh/test_views.py
parent074ca3fe68b790279c6ed8e0dda580b5ade8586e (diff)
downloadonline_test-40dc5e38c23d5c99475a6e9bbb811c5bb9b5d016.tar.gz
online_test-40dc5e38c23d5c99475a6e9bbb811c5bb9b5d016.tar.bz2
online_test-40dc5e38c23d5c99475a6e9bbb811c5bb9b5d016.zip
changed testcases to test questions dump
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r--yaksh/test_views.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py
index 6e59e26..3c08e48 100644
--- a/yaksh/test_views.py
+++ b/yaksh/test_views.py
@@ -640,8 +640,10 @@ class TestCourses(TestCase):
def setUp(self):
self.client = Client()
- self.mod_group = Group.objects.create(name='moderator')
-
+ self.mod_group = Group.objects.create(name='moderator')
+ User.objects.get_or_create(username='demo_user',
+ password='demo',
+ email='demo@test.com')
# Create Moderator with profile
self.user1_plaintext_pass = 'demo1'
self.user1 = User.objects.create_user(