Fakultas Ilmu Komputer UI

Commit 7a095fab authored by Rayza Arasj Mahardhika's avatar Rayza Arasj Mahardhika
Browse files

firest unit test and url mapping, dummy view

parent 731a8032
from django.urls import resolve
from django.test import TestCase
from lists.views import home_page
class Smoketest(TestCase):
class HomePageTest(TestCase):
def test_bad_maths(self):
self.assertEqual(1 + 1, 3)
def test_root_url_resolves_to_home_page_view(self):
found = resolve('/')
self.assertEqual(found.func, home_page)
from django.shortcuts import render
# Create your views here.
def home_page():
pass
......@@ -15,7 +15,9 @@ Including another URLconf
"""
from django.contrib import admin
from django.urls import path
from lists.views import home_page
urlpatterns = [
path('admin/', admin.site.urls),
# path('admin/', admin.site.urls),
path('', home_page, name='home')
]
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