Fakultas Ilmu Komputer UI

Commit 9fd5c1d5 authored by Kevin Albert Simanjuntak's avatar Kevin Albert Simanjuntak
Browse files

implement code

parent d858e28f
Pipeline #19967 passed with stage
in 45 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
......@@ -16,7 +16,7 @@ class NewVisitorTest(unittest.TestCase):
# She notices the page title and header mention to-do lists
body_text = self.browser.find_element_by_tag_name('body').text
self.assertIn('To-Do', self.browser.title)
self.assertIn('To-Do lists', self.browser.title)
self.assertIn('Kevin Albert Simanjuntak', body_text)
self.assertIn('NPM', body_text)
......
......@@ -686,3 +686,217 @@ console.log: "RemoteSettingsWorker error: UnknownError: The operation failed for
###!!! [Child][MessageChannel::SendAndWait] Error: Channel error: cannot send/recv
1568795383157 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "-marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\KEVINS~1\\AppData\\Local\\Temp\\rust_mozprofileLuNzFM"
1568795391603 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
1568795391603 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry
1568795391603 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
1568795391603 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
console.error: "Could not write session state file " (new Error("_initWorker called too early! Please read the session file from disk first.", "resource:///modules/sessionstore/SessionFile.jsm", 375)) "_initWorker/<@resource:///modules/sessionstore/SessionFile.jsm:375:15\n_initWorker@resource:///modules/sessionstore/SessionFile.jsm:368:12\n_postToWorker@resource:///modules/sessionstore/SessionFile.jsm:410:16\nwrite@resource:///modules/sessionstore/SessionFile.jsm:448:24\nwrite@resource:///modules/sessionstore/SessionFile.jsm:75:32\n_writeState@resource:///modules/sessionstore/SessionSaver.jsm:360:24\n_saveState@resource:///modules/sessionstore/SessionSaver.jsm:294:17\n_saveStateAsync@resource:///modules/sessionstore/SessionSaver.jsm:344:10\nsaveStateAsyncWhenIdle@resource:///modules/sessionstore/SessionSaver.jsm:191:14\ncallback@resource://gre/modules/Timer.jsm:125:7\n"
1568795418311 Marionette INFO Listening on port 64582
1568795419413 Marionette WARN TLS certificate errors will be ignored for this session
1568795424850 Marionette INFO Stopped listening on port 64582
[Child 15940, Chrome_ChildThread] WARNING: pipe error: 109: file z:/task_1566864336/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[Child 15940, ChIPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
[JavaScript error: resource://gre/modules/UrlClassifierListManager.jsm, line 680: TypeError: this.tablesData[table] is undefined
[Parent 14220, Gecko_IOThread] WARNING: pipe error: 109: file z:/task_1566864336/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[Child 15192, Chrome_ChildThread] WARNING: pipe error: 109: file z:/task_1566864336/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[Child 15192,
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[GPU 13076, Chro
###!!! [Child][MessageChannel::SendAndWait] Error: Channel error: cannot send/recv
1568795906078 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "-marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\KEVINS~1\\AppData\\Local\\Temp\\rust_mozprofilePGtjT5"
1568795907971 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
1568795907971 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry
1568795907972 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
1568795907972 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
1568795925722 Marionette INFO Listening on port 64696
1568795925823 Marionette WARN TLS certificate errors will be ignored for this session
1568795930358 Marionette INFO Stopped listening on port 64696
JavaScript error: resource://activity-stream/lib/ActivityStreamPrefs.jsm, line 27: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIPrefBranch.removeObserver]
[Child 1352, Chrome_ChildThread] WARNING: pipe error: 109: file z:/task_1566864336/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[Child 1352, Ch[Child 14296, Chrome_ChildThread] WARNING: pipe error: 109: file z:/task_1566864336/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[Child 14296, Chrome_ChiJavaScript error: resource://gre/modules/UrlClassifierListManager.jsm, line 680: TypeError: this.tablesData[table] is undefined
1568795933635 addons.xpi WARN Addon with ID amazondotcom@search.mozilla.org already installed, older version will be disabled
1568795933636 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
makeAddonVisible@XPIDatabase.jsm:2286:10
addToDatabase@XPIDatabase.jsm:2213:12
install@XPIInstall.jsm:4343:27
update@XPIProvider.jsm:2064:13
1568795933636 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
addToDatabase@XPIDatabase.jsm:2216:10
install@XPIInstall.jsm:4343:27
update@XPIProvider.jsm:2064:13
1568795933636 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
syncWithDB@XPIProvider.jsm:671:25
addAddon@XPIProvider.jsm:807:14
addAddon@XPIProvider.jsm:1603:21
install@XPIInstall.jsm:4348:17
update@XPIProvider.jsm:2064:13
1568795934711 addons.xpi WARN Addon with ID bing@search.mozilla.org already installed, older version will be disabled
1568795934712 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
makeAddonVisible@XPIDatabase.jsm:2286:10
addToDatabase@XPIDatabase.jsm:2213:12
install@XPIInstall.jsm:4343:27
update@XPIProvider.jsm:2064:13
1568795934712 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
addToDatabase@XPIDatabase.jsm:2216:10
install@XPIInstall.jsm:4343:27
update@XPIProvider.jsm:2064:13
1568795934712 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
syncWithDB@XPIProvider.jsm:671:25
addAddon@XPIProvider.jsm:807:14
addAddon@XPIProvider.jsm:1603:21
install@XPIInstall.jsm:4348:17
update@XPIProvider.jsm:2064:13
1568795934728 addons.xpi WARN Addon with ID google@search.mozilla.org already installed, older version will be disabled
1568795934728 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
makeAddonVisible@XPIDatabase.jsm:2286:10
addToDatabase@XPIDatabase.jsm:2213:12
install@XPIInstall.jsm:4343:27
update@XPIProvider.jsm:2064:13
1568795934729 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
addToDatabase@XPIDatabase.jsm:2216:10
install@XPIInstall.jsm:4343:27
update@XPIProvider.jsm:2064:13
1568795934729 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
syncWithDB@XPIProvider.jsm:671:25
addAddon@XPIProvider.jsm:807:14
addAddon@XPIProvider.jsm:1603:21
install@XPIInstall.jsm:4348:17
update@XPIProvider.jsm:2064:13
1568795934746 addons.xpi WARN Addon with ID twitter@search.mozilla.org already installed, older version will be disabled
1568795934747 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
makeAddonVisible@XPIDatabase.jsm:2286:10
addToDatabase@XPIDatabase.jsm:2213:12
install@XPIInstall.jsm:4343:27
update@XPIProvider.jsm:2064:13
1568795934747 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
addToDatabase@XPIDatabase.jsm:2216:10
install@XPIInstall.jsm:4343:27
update@XPIProvider.jsm:2064:13
1568795934747 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
syncWithDB@XPIProvider.jsm:671:25
addAddon@XPIProvider.jsm:807:14
addAddon@XPIProvider.jsm:1603:21
install@XPIInstall.jsm:4348:17
update@XPIProvider.jsm:2064:13
1568795934784 addons.xpi WARN Addon with ID wikipedia@search.mozilla.org already installed, older version will be disabled
1568795934784 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
makeAddonVisible@XPIDatabase.jsm:2286:10
addToDatabase@XPIDatabase.jsm:2213:12
install@XPIInstall.jsm:4343:27
update@XPIProvider.jsm:2064:13
1568795934784 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
addToDatabase@XPIDatabase.jsm:2216:10
install@XPIInstall.jsm:4343:27
update@XPIProvider.jsm:2064:13
1568795934785 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
syncWithDB@XPIProvider.jsm:671:25
addAddon@XPIProvider.jsm:807:14
addAddon@XPIProvider.jsm:1603:21
install@XPIInstall.jsm:4348:17
update@XPIProvider.jsm:2064:13
1568795934800 addons.xpi WARN Addon with ID ddg@search.mozilla.org already installed, older version will be disabled
1568795934801 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
makeAddonVisible@XPIDatabase.jsm:2286:10
addToDatabase@XPIDatabase.jsm:2213:12
install@XPIInstall.jsm:4343:27
update@XPIProvider.jsm:2064:13
1568795934801 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
addToDatabase@XPIDatabase.jsm:2216:10
install@XPIInstall.jsm:4343:27
update@XPIProvider.jsm:2064:13
1568795934801 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1483:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1483:17
syncWithDB@XPIProvider.jsm:671:25
addAddon@XPIProvider.jsm:807:14
addAddon@XPIProvider.jsm:1603:21
install@XPIInstall.jsm:4348:17
update@XPIProvider.jsm:2064:13
[Parent 9440, Gecko_IOThread] WARNING: pipe error: 109: file z:/task_1566864336/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[Child 16712, Chrome_ChildThread] WARNING: pipe error: 109: file z:/task_1566864336/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[Child 16712, ChromJavaScript error: resource://gre/modules/ExtensionSettingsStore.jsm, line 117: Error: The ExtensionSettingsStore was accessed before the initialize promise resolved.
JavaScript error: resource://gre/modules/Sqlite.jsm, line 912: Error: Connection is not open.
###!!! [Parent][DispatchAsyncMessage] Error: PBackgroundIDBFactory::Msg_PBackgroundIDBFactoryRequestConstructor Value error: message was deserialized, but contained an illegal value
console.log: "RemoteSettingsWorker error: UnknownError: The operation failed for reasons unrelated to the database itself and not covered by any other error code."
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[GPU 7648, ChromeJavaScript error: resource://gre/modules/osfile/osfile_async_front.jsm, line 426: Error: OS.File has been shut down. Rejecting post to DirectoryIterator_prototype_close
###!!! [Child][MessageChannel::SendAndWait] Error: Channel error: cannot send/recv
1568796055005 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "-marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\KEVINS~1\\AppData\\Local\\Temp\\rust_mozprofilegXfjFZ"
1568796057973 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
1568796057974 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry
1568796057974 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
1568796057974 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
1568796064167 Marionette INFO Listening on port 64759
1568796064405 Marionette WARN TLS certificate errors will be ignored for this session
1568796067583 Marionette INFO Stopped listening on port 64759
JavaScript error: resource://activity-stream/lib/ActivityStreamPrefs.jsm, line 27: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIPrefBranch.removeObserver]
[Child 16776, Chrome_ChildThread] WARNING: pipe error: 109: file z:/task_1566864336/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[Child 16776, Chrome_ChildThr[Child 4040, Chrome_ChildThread] WARNING: pipe error: 109: file z:/task_1566864336/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[Child 4040, Chrome_ChildThread] WARNING: pipe error: 109: file z:/task_1566864336/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[Parent 4228, Gecko_IOThread] WARNING: pipe error: 109: file z:/task_1566864336/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[Child 15736, Chrome_ChildThread] WARNING: pipe error: 109: file z:/task_1566864336/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[Child 15736, ChromJavaScript error: resource://gre/modules/JSONFile.jsm, line 173: Error: Data is not ready.
console.log: "RemoteSettingsWorker error: UnknownError: The operation failed for reasons unrelated to the database itself and not covered by any other error code."
###!!! [Parent][DispatchAsyncMessage] Error: PBackgroundIDBFactory::Msg_PBackgroundIDBFactoryRequestConstructor Value error: message was deserialized, but contained an illegal value
###!!! [Parent][DispatchAsyncMessage] Error: PBackgroundIDBFactory::Msg_PBackgroundIDBFactoryRequestConstructor Value error: message was deserialized, but contained an illegal value
JavaScript error: resource://services-common/kinto-offline-client.js, line 579: Error: IndexedDB getLastModified() The operation failed for reasons unrelated to the database itself and not covered by any other error code.
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[GPU 10932
###!!! [Child][MessageChannel::SendAndWait] Error: Channel error: cannot send/recv
<html>
<head>
<meta charset="UTF-8">
<title>To-Do lists</title>
</head>
<body>
<h1>Name: {{ name }}</h1>
<h2> NPM: {{npm}} </h2>
</body>
</html>
\ No newline at end of file
from django.urls import resolve
from django.test import TestCase
from django.http import HttpRequest
from django.test import Client
from lists.views import home_page
class HomePageTest(TestCase):
def test_home_page_is_exist(self):
response = Client().get('/homepage/')
self.assertEqual(response.status_code,200)
def test_root_url_resolves_to_home_page_view(self):
found = resolve('/homepage/')
......
from django.conf.urls import url
from .views import home_page
#url for app
urlpatterns = [
url(r'^$', home_page, name='home_page'),
]
from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
name = "Kevin Albert Simanjuntak"
npm = "1606835595"
def home_page(request):
return HttpResponse('<html><title>To-Do lists</title></html>')
\ No newline at end of file
response = {"name" : name, "npm" : npm}
return render(request, 'homepage.html', response)
\ No newline at end of file
......@@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'lists'
]
MIDDLEWARE = [
......
from django.conf.urls import url
from django.conf.urls import url, include
from lists import views
import lists.urls as lists
urlpatterns = [
url(r'^$', views.home_page, name='home'),
#url(r'^$', views.home_page, name='home'),
url(r'^homepage/', include(('lists.urls', 'lists'),namespace='lists')),
]
\ 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