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
Class Project
DIGIPUS
Commits
3c733918
Commit
3c733918
authored
Oct 10, 2020
by
Nandhika Prayoga
Browse files
[GREEN] Fix typo on app.tests.py
parent
f18e0265
Pipeline
#58189
passed with stages
in 13 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/tests.py
View file @
3c733918
...
...
@@ -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
())
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