Fakultas Ilmu Komputer UI

Commit 82deca8f authored by emil farisan's avatar emil farisan
Browse files

first unit test and url mapping, dummy view

parent 2e82ba8a
......@@ -21,3 +21,4 @@
1568819179407 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
1568819187392 Marionette INFO Listening on port 45121
1568819187515 Marionette WARN TLS certificate errors will be ignored for this session
1568882716569 Marionette INFO Stopped listening on port 45121
from django.urls import resolve
from django.test import TestCase
from lists.views import home_page
class SmokeTest(TestCase):
def test_bad_maths(self):
self.assertEqual(1 + 1, 3)
class HomePageTest(TestCase):
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
......@@ -17,5 +17,6 @@ from django.contrib import admin
from django.urls import path
urlpatterns = [
path('admin/', admin.site.urls),
path('$', 'lists.views.home')
# path('admin/', admin.site.urls),
]
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