Fakultas Ilmu Komputer UI

Commit 3c733918 authored by Nandhika Prayoga's avatar Nandhika Prayoga
Browse files

[GREEN] Fix typo on app.tests.py

parent f18e0265
Pipeline #58189 passed with stages
in 13 minutes and 58 seconds
......@@ -2140,12 +2140,12 @@ class RandomizedMateriTest(TestCase):
self.materi = Materi.objects.create(
title="Materi 2",
author="Prayoga",
uploader=contributor,
uploader=self.contributor,
publisher="Kelas SC",
descriptions="Deskripsi Materi 2",
status="APPROVE",
cover=cover,
content=content,
cover=self.cover,
content=self.content,
date_modified=datetime.now(),
date_created=datetime.now(),
)
......@@ -2156,5 +2156,5 @@ class RandomizedMateriTest(TestCase):
def test_randomized_materi_remains_same_materi(self):
response = Client().get("/?random=1")
self.assertIn("Materi 1", response.as_view())
self.assertIn("Materi 2", response.as_view())
self.assertIn("Materi 1", response.content.decode())
self.assertIn("Materi 2", response.content.decode())
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