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
1506757352-practice
Commits
6053b0d1
Commit
6053b0d1
authored
Sep 24, 2019
by
Syahrul Ardiansyah
Browse files
Add gitlab-ci.yml
parent
385a56f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
6053b0d1
image
:
django:1.11
test
:
script
:
-
python manage.py test
functional-test
:
script
:
-
python functional_test.py
functional_test.py
View file @
6053b0d1
...
...
@@ -2,6 +2,7 @@ from selenium import webdriver
from
selenium.webdriver.common.keys
import
Keys
import
unittest
import
time
import
os
class
NewVisitorTest
(
unittest
.
TestCase
):
...
...
@@ -19,7 +20,7 @@ class NewVisitorTest(unittest.TestCase):
def
test_can_start_a_list_and_retrieve_it_later
(
self
):
# Edith has heard about a cool new online to-do app. She goes
# to check out its homepage
self
.
browser
.
get
(
'http://localhost:8000'
)
self
.
browser
.
get
(
os
.
environ
[
'APP_URL'
]
)
# She notices the page title and header mention to-do lists
self
.
assertIn
(
'To-Do'
,
self
.
browser
.
title
)
...
...
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