Fakultas Ilmu Komputer UI

Commit a341a708 authored by Kevin Raikhan Zain's avatar Kevin Raikhan Zain
Browse files

[REFACTOR] Change test to be more consistent

parent 104fb14b
Pipeline #59640 passed with stages
in 16 minutes and 6 seconds
......@@ -2648,13 +2648,13 @@ class SeeRatedMateriByUser(TestCase):
self.materi1 = Materi.objects.all()[0]
self.materi2 = Materi.objects.all()[1]
self.materi3 = Materi.objects.all()[2]
time.sleep(0.5)
time.sleep(5)
self.rating_test_1 = Rating(materi=self.materi1, user=self.kontributor, score=5)
time.sleep(0.5)
time.sleep(5)
self.rating_test_2 = Rating(materi=self.materi2, user=self.kontributor, score=4)
time.sleep(0.5)
time.sleep(5)
self.rating_test_3 = Rating(materi=self.materi3, user=self.kontributor, score=3)
time.sleep(0.5)
time.sleep(5)
self.rating_test_4 = Rating(materi=self.materi3, user=self.admin, score=3)
self.rating_test_1.save()
......
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