Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI40-Midterm-Project
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
Andrea Tsai
CSCI40-Midterm-Project
Commits
2fcda286
Commit
2fcda286
authored
Mar 21, 2020
by
littleredpanda14
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented tests
parent
00de31bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
4 deletions
+69
-4
tests.py
froyo/tests.py
+69
-4
No files found.
froyo/tests.py
View file @
2fcda286
...
@@ -13,7 +13,72 @@ class IngredientsListPageTest(TestCase):
...
@@ -13,7 +13,72 @@ class IngredientsListPageTest(TestCase):
self
.
assertTemplateUsed
(
response
,
'ingredients_list.html'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_list.html'
)
class
IngredientsListPageTest
(
TestCase
):
class
IngredientsDetailPageTest
(
TestCase
):
def
test_ingredients_list_page_returns_correct_html
(
self
):
def
test_ingredients_detail_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/ingredients'
)
response
=
self
.
client
.
get
(
'/froyo/ingredients/ingredient_name'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_list.html'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_detail.html'
)
class
IngredientsUpdatePageTest
(
TestCase
):
def
test_ingredients_update_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/ingredients/update'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_update_form.html'
)
class
IngredientsCreatePageTest
(
TestCase
):
def
test_ingredients_create_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/ingredients/create'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_create_form.html'
)
class
RecipesListPageTest
(
TestCase
):
def
test_recipes_list_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/recipes'
)
self
.
assertTemplateUsed
(
response
,
'recipes_list.html'
)
class
RecipesDetailPageTest
(
TestCase
):
def
test_recipes_detail_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/recipes/recipe_name'
)
self
.
assertTemplateUsed
(
response
,
'recipes_detail.html'
)
class
RecipesUpdatePageTest
(
TestCase
):
def
test_recipes_update_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/recipes/update'
)
self
.
assertTemplateUsed
(
response
,
'recipes_update_form.html'
)
class
RecipesCreatePageTest
(
TestCase
):
def
test_recipes_create_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/recipes/create'
)
self
.
assertTemplateUsed
(
response
,
'recipes_create_form.html'
)
class
OrdersListPageTest
(
TestCase
):
def
test_orders_list_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/orders'
)
self
.
assertTemplateUsed
(
response
,
'orders_list.html'
)
class
OrdersDetailPageTest
(
TestCase
):
def
test_orders_detail_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/orders/order_name'
)
self
.
assertTemplateUsed
(
response
,
'orders_detail.html'
)
class
OrdersUpdatePageTest
(
TestCase
):
def
test_orders_update_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/orders/update'
)
self
.
assertTemplateUsed
(
response
,
'orders_update_form.html'
)
class
OrdersCreatePageTest
(
TestCase
):
def
test_orders_create_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/orders/create'
)
self
.
assertTemplateUsed
(
response
,
'orders_create_form.html'
)
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