Fakultas Ilmu Komputer UI

Commit acf2162b authored by I Gusti Putu Agastya Indrayana's avatar I Gusti Putu Agastya Indrayana
Browse files

Merge branch 'PBI-2-Login_Admin' into 'master'

Pbi 2 login admin

See merge request !7
parents 832dbe34 57ed1871
Pipeline #39519 passed with stages
in 2 minutes and 59 seconds
......@@ -11,6 +11,8 @@ local_settings.py
db.sqlite3
db.sqlite3-journal
media
*/__pycache__/*
static/
# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/
# in your Git repository. Update and uncomment the following line accordingly.
......@@ -185,6 +187,7 @@ pip-selfcheck.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.vscode/
### VisualStudioCode Patch ###
# Ignore all local history of files
......
......@@ -22,9 +22,7 @@ UnitTest:
- coverage.xml
SonarScanner:
image:
name: sonarsource/sonar-scanner-cli:latest
entrypoint: [""]
image: addianto/sonar-scanner-cli:latest
stage: sonarqube
script:
- sonar-scanner
......@@ -32,6 +30,9 @@ SonarScanner:
-Dsonar.login=$SONARQUBE_TOKEN
-Dsonar.branch.name=$CI_COMMIT_REF_NAME
-Dsonar.projectKey=$SONARQUBE_PROJECT_KEY
only:
- master
- staging
Staging:
image: ruby:2.4
......
{
"python.pythonPath": "env\\Scripts\\python.exe"
}
\ No newline at end of file
[![pipeline status](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/diskominfo-depok-digipus/marjinal-digipus/badges/master/pipeline.svg)](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/diskominfo-depok-digipus/marjinal-digipus/commits/master)
[![coverage report](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/diskominfo-depok-digipus/marjinal-digipus/badges/master/coverage.svg)](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/diskominfo-depok-digipus/marjinal-digipus/commits/master)
\ No newline at end of file
from django.test import TestCase
from django.test import TestCase, Client
from django.urls import resolve
# Create your tests here.
#class TemplateLoaderTest(TestCase):
# def test_template_loader_url_exist(self):
# url = "/test-page.html"
# response = Client().get(url)
# self.assertEqual(response.status_code,200)
#
# def test_template_loader_using_template_loader_template(self):
# url = "/test-page.html"
# response = Client().get(url)
# expected_template_name = "test-page.html"
# self.assertTemplateUsed(response, expected_template_name)
#
# def test_template_loader_using_template_loader_func(self):
# url = "/test-page.html"
# found = resolve(url)
# expected_view_name = "pages"
# self.assertEqual(found.func.__name__, expected_view_name)
#
# def test_template_loader_handle_non_existent_html(self):
# url = "/test.html"
# expected_template_name = "error-404.html"
# response = Client().get(url)
# self.assertEqual(response.status_code,200)
# self.assertTemplateUsed(response, expected_template_name)
\ No newline at end of file
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class AuthenticationConfig(AppConfig):
name = 'authentication'
Markdown is supported
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