Commit 8818b2c3 authored by Kirby Ezekiel Santos's avatar Kirby Ezekiel Santos

Added a test for checking if the orders update form page returns the correct html template

parent 2ccfd41b
...@@ -55,3 +55,8 @@ class OrdersDetailPageTest(TestCase): ...@@ -55,3 +55,8 @@ class OrdersDetailPageTest(TestCase):
def test_orders_detail_page_returns_correct_html(self): def test_orders_detail_page_returns_correct_html(self):
response = self.client.get('/orders-detail') response = self.client.get('/orders-detail')
self.assertTemplateUsed(response, 'orders_detail.html') self.assertTemplateUsed(response, 'orders_detail.html')
class OrdersUpdatePageTest(TestCase):
def test_orders_update_page_returns_correct_html(self):
response = self.client.get('/orders-update')
self.assertTemplateUsed(response, 'orders_update.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