Commit a17afee6 authored by abbeeeeyyyyy's avatar abbeeeeyyyyy

Updated the tests file

parent 4030f9e9
......@@ -26,50 +26,54 @@ from django.template.loader import render_to_string
# Create your tests here.
class TheGoodPlaceSiteTest(TestCase):
def test_home_page_returns_correct_html(self):
response = self.client.get('/heroes/')
self.assertTemplateUsed(response, 'heroes.html')
response = self.client.get('/froyo/')
self.assertTemplateUsed(response, 'froyo.html')
def test_ingredients_list_page_returns_correct_html(self):
response = self.client.get('/hero/jester/')
response = self.client.get('froyo/ingredients/list/')
self.assertTemplateUsed(response,'ingredients_list.html')
def test_cloud_page_returns_correct_html(self):
response = self.client.get('/hero/cloud/')
self.assertTemplateUsed(response, 'detail_cloud.html')
def test_ingredients_detail_page_returns_correct_html(self):
response = self.client.get('froyo/ingredients/detail/')
self.assertTemplateUsed(response, 'ingredients_detail.html')
def test_sunflowey_page_returns_correct_html(self):
response = self.client.get('/hero/sunflowey/')
self.assertTemplateUsed(response, 'detail_sunflowey.html')
def test_ingredients_update_page_returns_correct_html(self):
response = self.client.get('froyo/ingredients/update/')
self.assertTemplateUsed(response, 'ingredients_update_form.html')
def test_home_page_returns_correct_html(self):
response = self.client.get('/heroes/')
self.assertTemplateUsed(response, 'heroes.html')
def test_ingredients_create_page_returns_correct_html(self):
response = self.client.get('froyo/ingredients/create/')
self.assertTemplateUsed(response, 'ingredients_create_form.html')
def test_jester_page_returns_correct_html(self):
response = self.client.get('/hero/jester/')
self.assertTemplateUsed(response,'detail_jester.html')
def test_recipe_list_page_returns_correct_html(self):
response = self.client.get('froyo/recipes/list/')
self.assertTemplateUsed(response,'recipe_list.html')
def test_cloud_page_returns_correct_html(self):
response = self.client.get('/hero/cloud/')
self.assertTemplateUsed(response, 'detail_cloud.html')
def test_recipe_detail_page_returns_correct_html(self):
response = self.client.get('froyo/recipes/detail/')
self.assertTemplateUsed(response, 'recipes_detail.html')
def test_sunflowey_page_returns_correct_html(self):
response = self.client.get('/hero/sunflowey/')
self.assertTemplateUsed(response, 'detail_sunflowey.html')
def test_recipe_update_page_returns_correct_html(self):
response = self.client.get('froyo/recipes/update/')
self.assertTemplateUsed(response, 'recipes_update_form.html')
def test_home_page_returns_correct_html(self):
response = self.client.get('/heroes/')
self.assertTemplateUsed(response, 'heroes.html')
def test_recipe_create_form_page_returns_correct_html(self):
response = self.client.get('froyo/recipes/create/')
self.assertTemplateUsed(response, 'recipes_create_form.html')
def test_jester_page_returns_correct_html(self):
response = self.client.get('/hero/jester/')
self.assertTemplateUsed(response,'detail_jester.html')
def test_orders_list_page_returns_correct_html(self):
response = self.client.get('froyo/orders/list/')
self.assertTemplateUsed(response,'orders_list.html')
def test_cloud_page_returns_correct_html(self):
response = self.client.get('/hero/cloud/')
self.assertTemplateUsed(response, 'detail_cloud.html')
def test_orders_detail_page_returns_correct_html(self):
response = self.client.get('froyo/orders/detail/')
self.assertTemplateUsed(response, 'orders_detail.html')
def test_sunflowey_page_returns_correct_html(self):
response = self.client.get('/hero/sunflowey/')
self.assertTemplateUsed(response, 'detail_sunflowey.html')
def test_orders_update_form_page_returns_correct_html(self):
response = self.client.get('froyo/orders/update/')
self.assertTemplateUsed(response, 'orders_update_form.html')
def test_orders_create_form_page_returns_correct_html(self):
response = self.client.get('froyo/orders/create/')
self.assertTemplateUsed(response, 'orders_create_form.html')
......@@ -20,8 +20,8 @@ from .views import Orders_CreateFormView
urlpatterns = [
path('', HeroesView.as_view(), name='heroes'),
path('heroes/', HeroesView.as_view(), name='heroes'),
path('', HeroesView.as_view(), name='froyo'),
path('froyo/', HeroesView.as_view(), name='heroes'),
path('froyo/ingredients/list/', Ingredients_ListView.as_view(), name='ingredients_list'),
path('froyo/ingredients/detail/', Ingredients_DetailView.as_view(), name='ingredients_detail'),
......
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