Fakultas Ilmu Komputer UI

Commit 59a5a847 authored by Arief Pratama's avatar Arief Pratama
Browse files

Fix RatingMateriTest get material

parent 5e99fcc8
Pipeline #60014 passed with stages
in 19 minutes and 8 seconds
......@@ -1991,8 +1991,8 @@ class RatingMateriTest(TestCase):
Materi(title="Materi Dua", author="Author", uploader=self.contributor,
publisher="Publisher", descriptions="Deskripsi Materi Dua",
status="APPROVE", cover=self.cover, content=self.content).save()
self.materi1 = Materi.objects.all()[0]
self.materi2 = Materi.objects.all()[1]
self.materi1 = Materi.objects.filter(title='Materi 1').get()
self.materi2 = Materi.objects.filter(title='Materi Dua').get()
self.url_rate = '/materi/rate/'
self.url_materi = '/materi/{}/'.format(self.materi1.id)
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