Commit 99839ae3 authored by Alex Bernard Francia's avatar Alex Bernard Francia

Home page unit test succesful.

parent 8dff3fa2
from django.urls import resolve
from django.test import TestCase
from .views import go_to_home_page
# Create your tests here.
class HomePageTest(TestCase):
def test_root_url_resolves_to_home_page_view(self):
found = resolve('/')
self.assertEqual(found.func, home_page)
\ No newline at end of file
self.assertEqual(found.func, go_to_home_page)
\ No newline at end of file
......@@ -18,7 +18,7 @@ from .views import go_to_recipes_update_form
urlpatterns = [
url(r'^$', go_to_home_page,name='homepage'),
url(r'^$', go_to_home_page,name='home_page'),
url(r'^ingredients/detail$', go_to_ingredients_detail,name='ingredients_detail'),
url(r'^ingredients/list$', go_to_ingredients_list,name='ingredients_list'),
......
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