Fakultas Ilmu Komputer UI

Commit e40ce2fb authored by Farah Alhaniy's avatar Farah Alhaniy
Browse files

Add test to kill mutant

parent f240ca48
......@@ -119,7 +119,15 @@ class HomePageTest(TestCase):
response = self.client.get(f'/lists/{list_.id}/')
self.assertIn('Sibuk tapi santai', response.content.decode())
def test_comment_todolist_more_than_equal_5(self):
def test_comment_todolist_equal_5(self):
list_ = List.objects.create()
for i in range(5):
Item.objects.create(text='itemey ' + str(i), list=list_)
response = self.client.get(f'/lists/{list_.id}/')
self.assertIn('Oh tidak', response.content.decode())
def test_comment_todolist_more_than_5(self):
list_ = List.objects.create()
for i in range(8):
Item.objects.create(text='itemey ' + str(i), list=list_)
......
......@@ -39,7 +39,8 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'lists'
'lists',
'django_mutpy',
]
MIDDLEWARE = [
......
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