diff options
author | adityacp | 2016-09-19 14:47:09 +0530 |
---|---|---|
committer | adityacp | 2016-09-19 14:47:09 +0530 |
commit | 4bc766cb85fd999a8e2ac6d7e87e62730edb1244 (patch) | |
tree | b9fb896d2893d016e7e0919a3c58eb1998e53d8b /yaksh/test_views.py | |
parent | 89376074f8dcee778dfc43587d623d4e8d1b5520 (diff) | |
download | online_test-4bc766cb85fd999a8e2ac6d7e87e62730edb1244.tar.gz online_test-4bc766cb85fd999a8e2ac6d7e87e62730edb1244.tar.bz2 online_test-4bc766cb85fd999a8e2ac6d7e87e62730edb1244.zip |
removed string comparison for demo course
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r-- | yaksh/test_views.py | 9 |
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( |