From 058724fb4b78774d8caeb2c0fbf53257ab00def7 Mon Sep 17 00:00:00 2001 From: CruiseDevice Date: Sat, 25 Apr 2020 19:23:29 +0530 Subject: Fix tests --- yaksh/test_views.py | 8 ++++---- 1 file 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, -- cgit