Commit fe6632c2 authored by Kirby Ezekiel Santos's avatar Kirby Ezekiel Santos

Added test for checking if the ingredients list page returns the correct template

parent fa75029c
...@@ -5,3 +5,8 @@ class HomePageTest(TestCase): ...@@ -5,3 +5,8 @@ class HomePageTest(TestCase):
def test_home_page_returns_correct_html(self): def test_home_page_returns_correct_html(self):
response = self.client.get('') response = self.client.get('')
self.assertTemplateUsed(response, 'home_page.html') self.assertTemplateUsed(response, 'home_page.html')
class IngredientsListPageTest(TestCase):
def test_ingredients_list_page_returns_correct_html(self):
response = self.client.get('/ingredients-list')
self.assertTemplateUsed(response, 'ingredients_list.html')
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