Commit adfda84b authored by Keith Adrian Santos's avatar Keith Adrian Santos

added tests in functional_test.py for orders. Not working, I'll add them in froyo pa.

parent ec111ac0
...@@ -24,6 +24,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -24,6 +24,7 @@ class NewVisitorTest(unittest.TestCase):
self.browser.get('http://localhost:8000/recipes') self.browser.get('http://localhost:8000/recipes')
self.assertIn('Recipes - Home', self.browser.title) self.assertIn('Recipes - Home', self.browser.title)
#Ingredients Subpages
self.browser.get('http://localhost:8000/ingredients/list') self.browser.get('http://localhost:8000/ingredients/list')
self.assertIn('Ingredients - List', self.browser.title) self.assertIn('Ingredients - List', self.browser.title)
...@@ -36,6 +37,19 @@ class NewVisitorTest(unittest.TestCase): ...@@ -36,6 +37,19 @@ class NewVisitorTest(unittest.TestCase):
self.browser.get('http://localhost:8000/ingredients/create') self.browser.get('http://localhost:8000/ingredients/create')
self.assertIn('Ingredients - Create', self.browser.title) self.assertIn('Ingredients - Create', self.browser.title)
#Orders Subpages
self.browser.get('http://localhost:8000/orders/list')
self.assertIn('Orders - List', self.browser.title)
self.browser.get('http://localhost:8000/orders/detail')
self.assertIn('Orders - Detail', self.browser.title)
self.browser.get('http://localhost:8000/orders/update')
self.assertIn('Orders - Update', self.browser.title)
self.browser.get('http://localhost:8000/orders/create')
self.assertIn('Orders - Create', self.browser.title)
self.fail('Finish the Test') self.fail('Finish the Test')
......
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