Commit f496cbc4 authored by Santino Campos's avatar Santino Campos

Write unit tests for views for ingredients model

parent e29f11e9
......@@ -39,4 +39,21 @@ class RecipesViewTest(TestCase):
response = self.client.get('/recipes/create')
self.assertTemplateUsed(response, 'recipes_create_form.html')
class OrdersViewTest(TestCase):
def test_orders_list_view_returns_proper_template(self):
response = self.client.get('/orders/list')
self.assertTemplateUsed(response, 'orders_list.html')
def test_orders_detail_view_returns_proper_template(self):
response = self.client.get('/orders/detail')
self.assertTemplateUsed(response, 'orders_detail.html')
def test_orders_update_form_returns_proper_template(self):
response = self.client.get('/orders/update')
self.assertTemplateUsed(response, 'orders_update_form.html')
def test_orders_create_form_view_returns_proper_template(self):
response = self.client.get('/orders/create')
self.assertTemplateUsed(response, 'orders_create_form.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