Commit f283a687 authored by Lance Michael O. Co's avatar Lance Michael O. Co 😢

ingredient tests made

parent 904c0e03
......@@ -2,8 +2,37 @@
from django.test import TestCase
class NewTaskTest(TestCase):
class HomePageTest(TestCase):
def test_can_get_create_template(self):
response = self.client.get('/tasks/new')
self.assertTemplateUsed(response, 'task_create_form.html')
\ No newline at end of file
def test_uses_home_template(self):
response = self.client.get('/')
self.assertTemplateUsed(response, 'home.html')
#ingredients tests
class IngredientsListTest(TestCase):
def test_uses_list_template(self):
response = self.client.get('/ingredients/list')
self.assertTemplateUsed(response, 'ingredients_list.html')
class IngredientsDetailTest(TestCase):
def test_uses_list_template(self):
response = self.client.get('/ingredients/detail')
self.assertTemplateUsed(response, 'ingredients_detail.html')
class IngredientsUpdateTest(TestCase):
def test_uses_list_template(self):
response = self.client.get('/ingredients/update')
self.assertTemplateUsed(response, 'ingredients_update_form.html')
class IngredientsCreateTest(TestCase):
def test_uses_list_template(self):
response = self.client.get('/ingredients/create')
self.assertTemplateUsed(response, 'ingredients_create_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