Fakultas Ilmu Komputer UI

Commit a62c5056 authored by Saul Andre's avatar Saul Andre
Browse files

[REFACTOR] Edit test detail materi

parent 500588d9
......@@ -65,7 +65,7 @@ class DetailMateriTest(TestCase):
Materi(title="Materi 1", author="Agas", uploader=self.contributor,
publisher="Kelas SC", descriptions="Deskripsi Materi 1",
status="PENDING", cover=self.cover, content=self.content, feedback="").save()
status="APPROVE", cover=self.cover, content=self.content, feedback="").save()
self.materi1 = Materi.objects.first()
self.url= "/materi/" + str(self.materi1.id) + "/"
......@@ -138,7 +138,7 @@ class DetailMateriTest(TestCase):
def test_detail_materi_contains_form_comment(self):
response = self.client.get(self.url)
self.assertContains(response, "komentar...")
self.assertContains(response, "Beri komentar...")
def test_delete_comments_by_admin(self):
url = self.url
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment