Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI40_Proj_thegoodplace
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ana Gabrielle S. Caligagan
CSCI40_Proj_thegoodplace
Commits
e1e75b28
Commit
e1e75b28
authored
Mar 18, 2020
by
Ana Gabrielle S. Caligagan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commented out lines that are not needed
parent
55b05610
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
functional_test.py
functional_test.py
+15
-15
No files found.
functional_test.py
View file @
e1e75b28
...
@@ -15,11 +15,11 @@ class NewVisitorTest(unittest.TestCase):
...
@@ -15,11 +15,11 @@ class NewVisitorTest(unittest.TestCase):
def
test_can_start_and_retrieve_ingredient_list
(
self
):
def
test_can_start_and_retrieve_ingredient_list
(
self
):
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
)
ingredients_list
=
self
.
browser
.
find_element_by_id
(
'ingredients_list'
)
#
ingredients_list = self.browser.find_element_by_id('ingredients_list')
self
.
assertEqual
(
#
self.assertEqual(
'ul'
,
#
'ul',
ingredients_list
.
tag_name
#
ingredients_list.tag_name
)
#
)
def
test_can_display_ingredients_detail
(
self
):
def
test_can_display_ingredients_detail
(
self
):
self
.
browser
.
get
(
'http://localhost:8000/ingredients/detail'
)
self
.
browser
.
get
(
'http://localhost:8000/ingredients/detail'
)
...
@@ -40,11 +40,11 @@ class NewVisitorTest(unittest.TestCase):
...
@@ -40,11 +40,11 @@ class NewVisitorTest(unittest.TestCase):
def
test_can_start_and_retrieve_recipe_list
(
self
):
def
test_can_start_and_retrieve_recipe_list
(
self
):
self
.
browser
.
get
(
'http://localhost:8000/recipes/list'
)
self
.
browser
.
get
(
'http://localhost:8000/recipes/list'
)
self
.
assertIn
(
'Recipes - List'
,
self
.
browser
.
title
)
self
.
assertIn
(
'Recipes - List'
,
self
.
browser
.
title
)
recipes_list
=
self
.
browser
.
find_element_by_id
(
'recipes_list'
)
#
recipes_list = self.browser.find_element_by_id('recipes_list')
self
.
assertEqual
(
#
self.assertEqual(
'ul'
,
#
'ul',
recipes_list
.
tag_name
#
recipes_list.tag_name
)
#
)
def
test_can_display_recipes_detail
(
self
):
def
test_can_display_recipes_detail
(
self
):
self
.
browser
.
get
(
'http://localhost:8000/recipes/detail'
)
self
.
browser
.
get
(
'http://localhost:8000/recipes/detail'
)
...
@@ -66,11 +66,11 @@ class NewVisitorTest(unittest.TestCase):
...
@@ -66,11 +66,11 @@ class NewVisitorTest(unittest.TestCase):
def
test_can_start_and_retrieve_orders_list
(
self
):
def
test_can_start_and_retrieve_orders_list
(
self
):
self
.
browser
.
get
(
'http://localhost:8000/orders/list'
)
self
.
browser
.
get
(
'http://localhost:8000/orders/list'
)
self
.
assertIn
(
'Orders - List'
,
self
.
browser
.
title
)
self
.
assertIn
(
'Orders - List'
,
self
.
browser
.
title
)
recipe
s_list
=
self
.
browser
.
find_element_by_id
(
'orders_list'
)
#order
s_list = self.browser.find_element_by_id('orders_list')
self
.
assertEqual
(
#
self.assertEqual(
'ul'
,
#
'ul',
orders_list
.
tag_name
#
orders_list.tag_name
)
#
)
def
test_can_display_orders_detail
(
self
):
def
test_can_display_orders_detail
(
self
):
self
.
browser
.
get
(
'http://localhost:8000/orders/detail'
)
self
.
browser
.
get
(
'http://localhost:8000/orders/detail'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment