Commit 0d2aafc6 authored by Cidney P. Ciacho's avatar Cidney P. Ciacho

Test cases came back OK.

parent 9942417a
Pipeline #1141 failed with stages
......@@ -4,82 +4,82 @@ from django.test import TestCase
class IngListTest(TestCase):
def test_home_page_returns_correct_html(self):
response = self.client.get('ingredients_list')
response = self.client.get('/ingredients/list')
self.assertTemplateUsed(response, 'ingredients_list.html')
class IngDetailTest(TestCase):
def test_home_page_returns_correct_html(self):
response = self.client.get('ingredients_detail')
response = self.client.get('/ingredients/detail')
self.assertTemplateUsed(response, 'ingredients_detail.html')
class IngUpdateTest(TestCase):
def test_home_page_returns_correct_html(self):
response = self.client.get('ingredients_update_form')
response = self.client.get('/ingredients/update/form')
self.assertTemplateUsed(response, 'ingredients_update_form.html')
class IngCreateTest(TestCase):
def test_home_page_returns_correct_html(self):
response = self.client.get('ingredients_create_form')
response = self.client.get('/ingredients/create/form')
self.assertTemplateUsed(response, 'ingredients_create_form.html')
class RecipesListTest(TestCase):
def test_home_page_returns_correct_html(self):
response = self.client.get('recipes_list')
response = self.client.get('/recipes/list')
self.assertTemplateUsed(response, 'recipes_list.html')
class RecipesDetailTest(TestCase):
def test_home_page_returns_correct_html(self):
response = self.client.get('recipes_detail')
response = self.client.get('/recipes/detail')
self.assertTemplateUsed(response, 'recipes_detail.html')
class RecipesUpdateTest(TestCase):
def test_home_page_returns_correct_html(self):
response = self.client.get('recipes_update_form')
response = self.client.get('/recipes/update/form')
self.assertTemplateUsed(response, 'recipes_update_form.html')
class RecipesCreateTest(TestCase):
def test_home_page_returns_correct_html(self):
response = self.client.get('recipes_create_form')
response = self.client.get('/recipes/create/form')
self.assertTemplateUsed(response, 'recipes_create_form.html')
class OrdersListTest(TestCase):
def test_home_page_returns_correct_html(self):
response = self.client.get('orders_list')
response = self.client.get('/orders/list')
self.assertTemplateUsed(response, 'orders_list.html')
class OrdersDetailTest(TestCase):
def test_home_page_returns_correct_html(self):
response = self.client.get('orders_detail')
response = self.client.get('/orders/detail')
self.assertTemplateUsed(response, 'orders_detail.html')
class OrdersUpdateTest(TestCase):
def test_home_page_returns_correct_html(self):
response = self.client.get('orders_update_form')
response = self.client.get('/orders/update/form')
self.assertTemplateUsed(response, 'orders_update_form.html')
class OrdersCreateTest(TestCase):
def test_home_page_returns_correct_html(self):
response = self.client.get('orders_create_form')
response = self.client.get('/orders/create/form')
self.assertTemplateUsed(response, 'orders_create_form.html')
\ No newline at end of file
......@@ -4,18 +4,18 @@ from .views import IngListView, IngDetailView, IngUpdateView, IngCreateView, Rec
urlpatterns = [
url(r'^ingredients_list$', IngListView.as_view(), name='ingredients_list'),
url(r'^ingredients_detail$', IngDetailView.as_view(), name='ingredients_detail'),
url(r'^ingredients_update_form$', IngUpdateView.as_view(), name='ingredients_update_form'),
url(r'^ingredients_create_form$', IngCreateView.as_view(), name='ingredients_create_form'),
url(r'^ingredients/list$', IngListView.as_view(), name='ingredients_list'),
url(r'^ingredients/detail$', IngDetailView.as_view(), name='ingredients_detail'),
url(r'^ingredients/update/form$', IngUpdateView.as_view(), name='ingredients_update_form'),
url(r'^ingredients/create/form$', IngCreateView.as_view(), name='ingredients_create_form'),
url(r'^recipes_list$', RecipesListView.as_view(), name='recipes_list'),
url(r'^recipes_detail$', RecipesDetailView.as_view(), name='recipes_detail'),
url(r'^recipes_update_form$', RecipesUpdateView.as_view(), name='recipes_update_form'),
url(r'^recipes_create_form$', RecipesCreateView.as_view(), name='recipes_create_form'),
url(r'^recipes/list$', RecipesListView.as_view(), name='recipes_list'),
url(r'^recipes/detail$', RecipesDetailView.as_view(), name='recipes_detail'),
url(r'^recipes/update/form$', RecipesUpdateView.as_view(), name='recipes_update_form'),
url(r'^recipes/create/form$', RecipesCreateView.as_view(), name='recipes_create_form'),
url(r'^orders_list$', OrdersListView.as_view(), name='orders_list'),
url(r'^orders_detail$', OrdersDetailView.as_view(), name='orders_detail'),
url(r'^orders_update_form$', OrdersUpdateView.as_view(), name='orders_update_form'),
url(r'^orders_create_form$', OrdersCreateView.as_view(), name='orders_create_form')
url(r'^orders/list$', OrdersListView.as_view(), name='orders_list'),
url(r'^orders/detail$', OrdersDetailView.as_view(), name='orders_detail'),
url(r'^orders/update/form$', OrdersUpdateView.as_view(), name='orders_update_form'),
url(r'^orders/create/form$', OrdersCreateView.as_view(), name='orders_create_form')
]
\ No newline at end of file
......@@ -10,7 +10,7 @@ class IngDetailView(TemplateView):
class IngUpdateView(TemplateView):
template_name = ' ingredients_update_form.html'
template_name = 'ingredients_update_form.html'
class IngCreateView(TemplateView):
......@@ -34,7 +34,7 @@ class RecipesCreateView(TemplateView):
class OrdersListView(TemplateView):
template_name = ' orders_list.html'
template_name = 'orders_list.html'
class OrdersDetailView(TemplateView):
......
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