summaryrefslogtreecommitdiff
path: root/yaksh/test_views.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r--yaksh/test_views.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py
index 4f9b18d..e88956c 100644
--- a/yaksh/test_views.py
+++ b/yaksh/test_views.py
@@ -650,9 +650,12 @@ class TestCourses(TestCase):
self.client = Client()
self.mod_group = Group.objects.create(name='moderator')
- User.objects.get_or_create(username='demo_user',
- password='demo',
- email='demo@test.com')
+ user = User.objects.get_or_create(username='yaksh_demo_user',
+ password='demo',
+ email='demo@test.com')
+ course = Course.objects.get_or_create(name="Yaksh Demo course",
+ enrollment="open",
+ creator=user[0])
# Create Moderator with profile
self.user1_plaintext_pass = 'demo1'
self.user1 = User.objects.create_user(