Commit 80095ba2 authored by Kirby Ezekiel Santos's avatar Kirby Ezekiel Santos

Added a test for checking if the recipe create page returns the correct html template

parent 56dfdf55
...@@ -40,3 +40,8 @@ class RecipesUpdatePageTest(TestCase): ...@@ -40,3 +40,8 @@ class RecipesUpdatePageTest(TestCase):
def test_recipes_update_page_returns_correct_html(self): def test_recipes_update_page_returns_correct_html(self):
response = self.client.get('/recipes-update') response = self.client.get('/recipes-update')
self.assertTemplateUsed(response, 'recipes_update_form.html') self.assertTemplateUsed(response, 'recipes_update_form.html')
class RecipesCreatePageTest(TestCase):
def test_recipes_create_page_returns_correct_html(self):
response = self.client.get('/recipes-create')
self.assertTemplateUsed(response, 'recipes_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