Fakultas Ilmu Komputer UI

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

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

This reverts merge request !7
parent acf2162b
Pipeline #39520 passed with stages
in 3 minutes and 16 seconds
......@@ -11,8 +11,6 @@ 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.
......@@ -187,7 +185,6 @@ pip-selfcheck.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.vscode/
### VisualStudioCode Patch ###
# Ignore all local history of files
......
......@@ -22,7 +22,9 @@ UnitTest:
- coverage.xml
SonarScanner:
image: addianto/sonar-scanner-cli:latest
image:
name: sonarsource/sonar-scanner-cli:latest
entrypoint: [""]
stage: sonarqube
script:
- sonar-scanner
......@@ -30,9 +32,6 @@ 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, Client
from django.urls import resolve
from django.test import TestCase
#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
# Create your tests here.
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