Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI40 Project1
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
Jason
CSCI40 Project1
Commits
681fc2d6
Commit
681fc2d6
authored
Apr 01, 2020
by
Jason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
9b2f0871
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
92 additions
and
0 deletions
+92
-0
tests.py
thegoodplace/froyo/tests.py
+92
-0
No files found.
thegoodplace/froyo/tests.py
0 → 100644
View file @
681fc2d6
from
django.test
import
TestCase
class
GoodPlaceHomepageTest
(
TestCase
):
def
test_home_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo_homepage'
)
self
.
assertTemplateUsed
(
response
,
"froyo_homepage.html"
)
class
IngredientsCreateFormTest
(
TestCase
):
def
test_ingredients_create_form_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/ingredients_create_form'
)
self
.
assertTemplateUsed
(
response
,
"ingredients_create_form.html"
)
class
IngredientsDetailTest
(
TestCase
):
def
test_ingredients_detail_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/ingredients_detail'
)
self
.
assertTemplateUsed
(
response
,
"ingredients_detail.html"
)
class
IngredientsListTest
(
TestCase
):
def
test_ingredients_list_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/ingredients_list'
)
self
.
assertTemplateUsed
(
response
,
"ingredients_list.html"
)
class
IngredientsUpdateFormTest
(
TestCase
):
def
test_ingredients_update_form_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/ingredients_update_form'
)
self
.
assertTemplateUsed
(
response
,
"ingredients_update_form.html"
)
class
OrdersCreateFormTest
(
TestCase
):
def
test_orders_create_form_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/orders_create_form'
)
self
.
assertTemplateUsed
(
response
,
"orders_create_form.html"
)
class
OrdersDetailTest
(
TestCase
):
def
test_orders_detail_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/orders_detail'
)
self
.
assertTemplateUsed
(
response
,
"orders_detail.html"
)
class
OrdersListTest
(
TestCase
):
def
test_orders_list_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/orders_list'
)
self
.
assertTemplateUsed
(
response
,
"orders_list.html"
)
class
OrdersUpdateFormTest
(
TestCase
):
def
test_orders_update_form_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/orders_update_form'
)
self
.
assertTemplateUsed
(
response
,
"orders_update_form.html"
)
class
RecipesCreateFormTest
(
TestCase
):
def
test_recipes_create_form_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/recipes_create_form'
)
self
.
assertTemplateUsed
(
response
,
"recipes_create_form.html"
)
class
RecipesDetailTest
(
TestCase
):
def
test_recipes_detail_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/recipes_detail'
)
self
.
assertTemplateUsed
(
response
,
"recipes_detail.html"
)
class
RecipesListTest
(
TestCase
):
def
test_recipes_list_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/recipes_list'
)
self
.
assertTemplateUsed
(
response
,
"recipes_list.html"
)
class
RecipesUpdateFormTest
(
TestCase
):
def
test_recipes_update_form_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/recipes_update_form'
)
self
.
assertTemplateUsed
(
response
,
"recipes_update_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