Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Collection of Practice
2019
1606821886-practice
Commits
e40ce2fb
Commit
e40ce2fb
authored
Nov 05, 2019
by
Farah Alhaniy
Browse files
Add test to kill mutant
parent
f240ca48
Changes
2
Hide whitespace changes
Inline
Side-by-side
lists/tests/test_views.py
View file @
e40ce2fb
...
...
@@ -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_
)
...
...
superlists/settings.py
View file @
e40ce2fb
...
...
@@ -39,7 +39,8 @@ INSTALLED_APPS = [
'django.contrib.sessions'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'lists'
'lists'
,
'django_mutpy'
,
]
MIDDLEWARE
=
[
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment