Fakultas Ilmu Komputer UI

Commit 46bb5598 authored by Kevin Albert Simanjuntak's avatar Kevin Albert Simanjuntak
Browse files

Merge branch 'homepage' into 'master'

Homepage

See merge request !1
parents d08844ad 896c4e4f
Pipeline #20069 passed with stage
in 40 seconds
!coverage.py: This is a private format, don't read it directly!{"lines":{"E:\\Tugas\\PMPL\\testinggoatch1-3\\superlists\\__init__.py":[1],"E:\\Tugas\\PMPL\\testinggoatch1-3\\superlists\\settings.py":[11,13,16,23,26,28,34,35,36,37,38,39,40,44,45,46,47,48,49,50,53,57,58,59,61,62,63,64,65,71,78,79,80,90,93,96,99,107,109,111,113,115,121],"E:\\Tugas\\PMPL\\testinggoatch1-3\\lists\\__init__.py":[1],"E:\\Tugas\\PMPL\\testinggoatch1-3\\lists\\models.py":[1],"E:\\Tugas\\PMPL\\testinggoatch1-3\\lists\\admin.py":[1],"E:\\Tugas\\PMPL\\testinggoatch1-3\\lists\\migrations\\__init__.py":[1],"E:\\Tugas\\PMPL\\testinggoatch1-3\\lists\\tests.py":[1,2,3,4,5,7,8,12,16,13,14,17,18,19,20,21,22,9,10],"E:\\Tugas\\PMPL\\testinggoatch1-3\\lists\\views.py":[1,2,5,6,7,8,9],"E:\\Tugas\\PMPL\\testinggoatch1-3\\superlists\\urls.py":[1,2,3,7],"E:\\Tugas\\PMPL\\testinggoatch1-3\\lists\\urls.py":[1,2,5]}}
\ No newline at end of file
*.log
*.pot
*.pyc
__pycache__/
local_settings.py
.env
db.sqlite3
/.idea/
/venv/
geckodriver.log
virtualenv
stages:
- test
Test:
image: python:3.7
stage: test
before_script:
- pip3 install --upgrade pip
- pip3 install -r requirements.txt
script:
- python3 manage.py test
tags:
- test
# 1606835595-practice
1606835595-practice
url Heroku : https://pmpl-kevin-simanjuntak.herokuapp.com/homepage/
from selenium import webdriver
import unittest
class NewVisitorTest(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Firefox()
def tearDown(self):
self.browser.quit()
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/homepage')
# She notices the page title and header mention to-do lists
body_text = self.browser.find_element_by_tag_name('body').text
self.assertIn('Tutorial PMPL', self.browser.title)
self.assertIn('Kevin Albert Simanjuntak', body_text)
self.assertIn('NPM', body_text)
# She is invited to enter a to-do item straight away
if __name__ == '__main__':
unittest.main(warnings='ignore')
\ No newline at end of file
stages:
- test
Test:
image: python:3.7
stage: test
before_script:
- pip3 install --upgrade pip
- pip3 install -r requirements.txt
script:
- python3 manage.py test
- python3 functional_tests.py
tags:
- test
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class ListsConfig(AppConfig):
name = 'lists'
from django.db import models
# Create your models here.
<html>
<head>
<meta charset="UTF-8">
<title>Tutorial PMPL</title>
</head>
<body>
<h1>Name: {{ name }}</h1>
<h2> NPM: {{npm}} </h2>
</body>
</html>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment