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
Collection of Practice
2019
1506722765-practice
Commits
920b3e46
Commit
920b3e46
authored
Dec 23, 2019
by
jordan
Browse files
[RED] implement navigation testing
parent
1ceb9e07
Changes
8
Hide whitespace changes
Inline
Side-by-side
.coverage
View file @
920b3e46
No preview for this file type
Procfile
View file @
920b3e46
migrate: bash deployment.sh
web: gunicorn superlists.wsgi --log-file -
\ No newline at end of file
deployment.sh
0 → 100644
View file @
920b3e46
#!/bin/bash
python manage.py makemigrations
python manage.py migrate
functional_test/test_header_footer.py
View file @
920b3e46
...
...
@@ -19,3 +19,5 @@ class HeaderAndFooter(FunctionalTest):
# Nama mahasiswa tersebut adalah Jordan Muhammad Andrianda,
# sehingga di footer terdapat nama tersebut.
self
.
assertIn
(
"Copyright Jordan Muhammad Andrianda"
,
footer_1
)
#Pengecekan Tugas Akhir Programming No 1 sudah diselesaikan
functional_test/test_navigation.py
0 → 100644
View file @
920b3e46
from
.base
import
FunctionalTest
class
Navigation
(
FunctionalTest
):
def
test_navigation
(
self
):
# Masuk halaman to do list
self
.
browser
.
get
(
self
.
live_server_url
)
# Terdapat navigation bar yang berisi informasi yang diperuntukan untuk PMPL Fasilkom UI app to do list
navbar_1
=
self
.
browser
.
find_element_by_id
(
"navbar_1"
).
text
# Informasi tersebut adalah Dibuat untuk menyelesaikan Tugas Ujian Akhir Penjaminan Mutu Perangkat Lunak 2019, yang ditampilkan di halaman webb
self
.
assertIn
(
"Dibuat untuk menyelesaikan Tugas Ujian Akhir Penjaminan Mutu Perangkat Lunak 2019"
,
navbar_1
)
# engecekan Tugas Akhir Programming No 2 sudah diselesaikan
lists/templates/base.html
View file @
920b3e46
...
...
@@ -4,9 +4,39 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<link
href=
"/static/bootstrap/css/bootstrap.min.css"
rel=
"stylesheet"
media=
"screen"
>
<link
href=
"/static/base.css"
rel=
"stylesheet"
media=
"screen"
>
<style>
.headerBar
{
overflow
:
hidden
;
background-color
:
#290653
;
top
:
0
;
width
:
100%
;
}
.footerBar
{
text-align
:
center
;
background-color
:
#290653
;
position
:
fixed
;
left
:
0
;
bottom
:
0
;
width
:
100%
;
}
a
{
display
:
block
;
color
:
#f2f2f2
;
text-align
:
center
;
font
:
10px
;
padding
:
14px
16px
;
text-decoration
:
none
;
}
</style>
</head>
<header
style=
"margin:0 auto;"
>
<h3
id=
"header_1"
>
Jordan Muhammad Andrianda To Do list App
</h3></header>
<header>
<div
class=
"headerBar"
>
<a
id=
"header_1"
>
Jordan Muhammad Andrianda To Do list App
</a>
</div>
</header>
<body>
<div
class=
"container"
>
<nav
class=
"navbar navbar-default"
role=
"navigation"
>
<div
class=
"container-fluid"
>
...
...
@@ -65,6 +95,11 @@
</div>
</div>
</body>
<footer
style=
"margin:0 auto;"
><h3
id=
"footer_1"
>
Copyright Jordan Muhammad Andriandaa
</h3></footer>
<footer>
<div
class=
"footerBar"
>
<a
id=
"footer_1"
>
Copyright Jordan Muhammad Andrianda
</a>
</div>
</footer>
</html>
readme.md
View file @
920b3e46
...
...
@@ -4,6 +4,15 @@
### Jordan Muhammad Andrianda <br> 1506722765 <br> This is Practice Repository PMPL Course
## Link Heroku
jordan-pmpl.herokuapp.com
## pipeline and code coverage
[

](https://gitlab.cs.ui.ac.id/pmpl/practice-collection/2019/1506722765-practice/commits/master)
[

](https://gitlab.cs.ui.ac.id/pmpl/practice-collection/2019/1506722765-practice/commits/master)
## Cerita Latihan 9 Mengapa implementasi Functional Test untuk fitur login lebih baik menggunakan implementasi subbab 20.1
...
...
superlists/settings.py
View file @
920b3e46
...
...
@@ -132,7 +132,7 @@ import dj_database_url
prod_db
=
dj_database_url
.
config
(
conn_max_age
=
500
)
DATABASES
[
'default'
].
update
(
prod_db
)
ALLOWED_HOSTS
=
[
'jordan-pmpl.herokuapp.com'
]
ALLOWED_HOSTS
=
[
'jordan-pmpl.herokuapp.com'
,
'localhost'
]
EMAIL_HOST
=
"smtp.gmail.com"
...
...
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