Fixed FT, fixed formatting.

parent e9558d79
from django.conf.urls import url
from .views import (HomeView, OrdersListView, OrdersDetailView, OrdersUpdateView, OrdersCreateView,
RecipesListView, RecipesDetailView, RecipesUpdateView, RecipesCreateView, IngredientsListView,
IngredientsDetailView, IngredientsUpdateView, IngredientsCreateView)
from .views import (HomeView, OrdersListView, OrdersDetailView,
OrdersUpdateView, OrdersCreateView, RecipesListView,
RecipesDetailView, RecipesUpdateView, RecipesCreateView,
IngredientsListView, IngredientsDetailView, IngredientsUpdateView,
IngredientsCreateView)
urlpatterns = [
url(r'^$', HomeView.as_view(), name='home'),
......
......@@ -3,6 +3,7 @@ import time
from selenium import webdriver
class NewVisitorTest(unittest.TestCase):
def setUp(self):
......@@ -12,7 +13,7 @@ class NewVisitorTest(unittest.TestCase):
self.browser.quit()
def test_can_add_orders(self):
# Wishing to have a look at all the available options, our employee goes to the home page.
# Our employee goes to the home page.
self.browser.get('http://localhost:8000/')
# He looks at the page title to double check.
......@@ -28,7 +29,8 @@ class NewVisitorTest(unittest.TestCase):
self.browser.current_url
)
# He sees several links and click the corresponding ones that would allow him to create and update. He is returned to the orders page after each success.
# He sees several links; he clicks create then update.
# He is returned to the orders page after each success.
orders_create = self.browser.find_element_by_id('orders-create-form')
orders_create.click()
time.sleep(1)
......@@ -73,7 +75,7 @@ class NewVisitorTest(unittest.TestCase):
self.browser.current_url
)
def can_add_ingredients(self):
def test_can_add_ingredients(self):
# Noticing a deficiency in ingredients, the employee goes to add more.
self.browser.get('http://localhost:8000/')
......@@ -87,7 +89,8 @@ class NewVisitorTest(unittest.TestCase):
self.browser.current_url
)
# He sees several links and click the corresponding ones that would allow him to create and update. He is returned to the orders page after each success.
# He sees several links; he clicks create then update.
# He is returned to the orders page after each success.
ingredients_create = self.browser.find_element_by_id('ingredients-create-form')
ingredients_create.click()
time.sleep(1)
......@@ -132,7 +135,7 @@ class NewVisitorTest(unittest.TestCase):
self.browser.current_url
)
def can_add_recipes(self):
def test_can_add_recipes(self):
# Having come up with a new idea, the employee goes to add his favourite recipe.
self.browser.get('http://localhost:8000/')
......@@ -146,7 +149,8 @@ class NewVisitorTest(unittest.TestCase):
self.browser.current_url
)
# He sees several links and click the corresponding ones that would allow him to create and update. He is returned to the orders page after each success.
# He sees several links; he clicks create then update.
# He is returned to the orders page after each success.
recipes_create = self.browser.find_element_by_id('recipes-create-form')
recipes_create.click()
time.sleep(1)
......
......@@ -16,6 +16,7 @@ Including another URLconf
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'', include('froyo.urls'))
......
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