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
59a5a847
Commit
59a5a847
authored
Oct 30, 2020
by
Arief Pratama
Browse files
Fix RatingMateriTest get material
parent
5e99fcc8
Pipeline
#60014
passed with stages
in 19 minutes and 8 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
app/tests.py
View file @
59a5a847
...
...
@@ -1991,8 +1991,8 @@ class RatingMateriTest(TestCase):
Materi
(
title
=
"Materi Dua"
,
author
=
"Author"
,
uploader
=
self
.
contributor
,
publisher
=
"Publisher"
,
descriptions
=
"Deskripsi Materi Dua"
,
status
=
"APPROVE"
,
cover
=
self
.
cover
,
content
=
self
.
content
).
save
()
self
.
materi1
=
Materi
.
objects
.
all
()[
0
]
self
.
materi2
=
Materi
.
objects
.
all
()[
1
]
self
.
materi1
=
Materi
.
objects
.
filter
(
title
=
'Materi 1'
).
get
()
self
.
materi2
=
Materi
.
objects
.
filter
(
title
=
'Materi Dua'
).
get
()
self
.
url_rate
=
'/materi/rate/'
self
.
url_materi
=
'/materi/{}/'
.
format
(
self
.
materi1
.
id
)
...
...
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