Commit b2367738 authored by Ayn Collado's avatar Ayn Collado

Updated tests.py, fixed urls.py for Django 3.0.3

parent 9c96f7d7
......@@ -10,10 +10,54 @@ class NewVisitorTest(unittest.TestCase):
self.browser.quit()
def test_every_test_is_in_here(self):
#Ingredients_list test
self.browser.get('http://localhost:8000/ingredients_list/')
#test_display_ingredients_list
self.browser.get('http://localhost:8000/froyo/ingredients_list/')
self.assertIn('Ingredients - List', self.browser.title)
#test_display_ingredients_detail
self.browser.get('http://localhost:8000/froyo/ingredients_detail/')
self.assertIn('Ingredients - Detail', self.browser.title)
#test_display_ingredients_update_form
self.browser.get('http://localhost:8000/froyo/ingredients_update_form/')
self.assertIn('Ingredients - Update', self.browser.title)
#test_display_ingredients_create_form
self.browser.get('http://localhost:8000/froyo/ingredients_create_form/')
self.assertIn('Ingredients - Create', self.browser.title)
#test_display_recipes_list
self.browser.get('http://localhost:8000/froyo/recipes_list/')
self.assertIn('Recipes - List', self.browser.title)
#test_display_recipes_detail
self.browser.get('http://localhost:8000/froyo/recipes_detail/')
self.assertIn('Recipes - Detail', self.browser.title)
#test_display_recipes_update_form
self.browser.get('http://localhost:8000/froyo/recipes_update_form/')
self.assertIn('Recipes - Update', self.browser.title)
#test_display_recipes_create_form
self.browser.get('http://localhost:8000/froyo/recipes_create_form/')
self.assertIn('Recipes - Create', self.browser.title)
#test_display_orders_list
self.browser.get('http://localhost:8000/froyo/orders_list/')
self.assertIn('Orders - List', self.browser.title)
#test_display_orders_detail
self.browser.get('http://localhost:8000/froyo/orders_detail/')
self.assertIn('Orders - Detail', self.browser.title)
#test_display_orders_update_form
self.browser.get('http://localhost:8000/froyo/orders_update_form/')
self.assertIn('Orders - Update', self.browser.title)
#test_display_orders_list
self.browser.get('http://localhost:8000/froyo/orders_create_form/')
self.assertIn('Orders - Create', self.browser.title)
def test_Fail_Test(self):
self.fail('Finished the test!')
......
from django.conf.urls import url
from django.urls import path
from . import views
urlpatterns = [
url(r'ingredients_list/', views.ingredients_list),
url(r'ingredients_detail/', views.ingredients_detail),
url(r'ingredients_update_form/', views.ingredients_update_form),
url(r'ingredients_create_form/', views.ingredients_create_form),
path(r'ingredients_list/', views.ingredients_list),
path(r'ingredients_detail/', views.ingredients_detail),
path(r'ingredients_update_form/', views.ingredients_update_form),
path(r'ingredients_create_form/', views.ingredients_create_form),
url(r'recipes_list/', views.recipes_list),
url(r'recipes_detail/', views.recipes_detail),
url(r'recipes_update_form/', views.recipes_update_form),
url(r'recipes_create_form/', views.recipes_create_form),
path(r'recipes_list/', views.recipes_list),
path(r'recipes_detail/', views.recipes_detail),
path(r'recipes_update_form/', views.recipes_update_form),
path(r'recipes_create_form/', views.recipes_create_form),
url(r'orders_list/', views.orders_list),
url(r'orders_detail/', views.orders_detail),
url(r'orders_update_form/', views.orders_update_form),
url(r'orders_create_form/', views.orders_create_form),
path(r'orders_list/', views.orders_list),
path(r'orders_detail/', views.orders_detail),
path(r'orders_update_form/', views.orders_update_form),
path(r'orders_create_form/', views.orders_create_form),
]
\ No newline at end of file
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