Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Class Project
DIGIPUS
Commits
a62c5056
Commit
a62c5056
authored
May 07, 2020
by
Saul Andre
Browse files
[REFACTOR] Edit test detail materi
parent
500588d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/tests.py
View file @
a62c5056
...
...
@@ -65,7 +65,7 @@ class DetailMateriTest(TestCase):
Materi
(
title
=
"Materi 1"
,
author
=
"Agas"
,
uploader
=
self
.
contributor
,
publisher
=
"Kelas SC"
,
descriptions
=
"Deskripsi Materi 1"
,
status
=
"
PENDING
"
,
cover
=
self
.
cover
,
content
=
self
.
content
,
feedback
=
""
).
save
()
status
=
"
APPROVE
"
,
cover
=
self
.
cover
,
content
=
self
.
content
,
feedback
=
""
).
save
()
self
.
materi1
=
Materi
.
objects
.
first
()
self
.
url
=
"/materi/"
+
str
(
self
.
materi1
.
id
)
+
"/"
...
...
@@ -138,7 +138,7 @@ class DetailMateriTest(TestCase):
def
test_detail_materi_contains_form_comment
(
self
):
response
=
self
.
client
.
get
(
self
.
url
)
self
.
assertContains
(
response
,
"komentar..."
)
self
.
assertContains
(
response
,
"
Beri
komentar..."
)
def
test_delete_comments_by_admin
(
self
):
url
=
self
.
url
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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