summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCruiseDevice2020-04-25 19:23:29 +0530
committerCruiseDevice2020-04-25 19:23:29 +0530
commit058724fb4b78774d8caeb2c0fbf53257ab00def7 (patch)
tree6567e42730274e99db08c69b4987834e551ba146
parent66939d00dab998c7c0e649938527271551f22980 (diff)
downloadonline_test-058724fb4b78774d8caeb2c0fbf53257ab00def7.tar.gz
online_test-058724fb4b78774d8caeb2c0fbf53257ab00def7.tar.bz2
online_test-058724fb4b78774d8caeb2c0fbf53257ab00def7.zip
Fix tests
-rw-r--r--yaksh/test_views.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py
index 0ae97ba..3ce3f81 100644
--- a/yaksh/test_views.py
+++ b/yaksh/test_views.py
@@ -6516,15 +6516,15 @@ class TestPost(TestCase):
def test_hide_post(self):
self.client.login(
- username=self.student.username,
- password=self.student_plaintext_pass
+ username=self.user.username,
+ password=self.user_plaintext_pass
)
- self.course.students.add(self.student)
+ self.course.students.add(self.user)
post = Post.objects.create(
title='post 1',
description='post 1 description',
course=self.course,
- creator=self.student
+ creator=self.user
)
url = reverse('yaksh:hide_post', kwargs={
'course_id': self.course.id,