diff options
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r-- | yaksh/test_views.py | 6 |
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( |