Commit 652a232a authored by Karlo Cabugwang's avatar Karlo Cabugwang

test now include ingredients model with a queryset error

parent 1338edda
from django.urls import resolve
from django.test import TestCase
# Create your tests here.
class IngredientsListViewTest(TestCase):
def test_can_open_ingredients_list_view_temp(self):
response = self.client.get('/ingredients')
self.assertTemplateUsed(response, 'ingredients_list.html')
class IngredientsDetailViewTest(TestCase):
def test_can_open_ingredients_detail_view_temp(self):
response = self.client.get('/ingredients/detail')
self.assertTemplateUsed(response, 'ingredients_detail.html')
class IngredientsCreateViewTest(TestCase):
def test_can_open_ingredients_create_view_temp(self):
response = self.client.get('/ingredients/new')
self.assertTemplateUsed(response, 'ingredients_create_form.html')
class IngredientsUpdateViewTest(TestCase):
def test_can_open_ingredients_update_view_temp(self):
response = self.client.get('/ingredients/update')
self.assertTemplateUsed(response, 'ingredients_update_form.html')
\ No newline at end of file
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