summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh')
-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,