Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
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
Kyra Hung
Midterm-Project
Commits
0ffccd07
Commit
0ffccd07
authored
Mar 18, 2020
by
KY-2187
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edited tests.py
parent
1bc375f4
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1056 additions
and
1 deletion
+1056
-1
tests.py
Midterm Project/froyo/tests.py
+76
-1
geckodriver.log
Midterm Project/geckodriver.log
+980
-0
No files found.
Midterm Project/froyo/tests.py
View file @
0ffccd07
from
django.test
import
TestCase
# Create your tests here.
class
IngredientsListTest
(
TestCase
):
def
test_ingredients_list_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'ingredients_list'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_list.html'
)
class
IngredientsDetailTest
(
TestCase
):
def
test_ingredients_detail_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'ingredients_detail'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_detail.html'
)
class
IngredientsUpdateTest
(
TestCase
):
def
test_ingredients_update_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'ingredients_update'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_update_form.html'
)
class
IngredientsCreateTest
(
TestCase
):
def
test_ingredients_create_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'ingredients_create'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_create_form.html'
)
class
RecipesDetailTest
(
TestCase
):
def
test_recipes_detailt_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'recipes_detail'
)
self
.
assertTemplateUsed
(
response
,
'recipes_detail.html'
)
class
RecipesUpdateTest
(
TestCase
):
def
test_recipes_update_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'recipes_update'
)
self
.
assertTemplateUsed
(
response
,
'recipes_update_form.html'
)
class
RecipesCreateTest
(
TestCase
):
def
test_recipes_create_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'recipes_create'
)
self
.
assertTemplateUsed
(
response
,
'recipes_create_form.html'
)
class
OrdersListTest
(
TestCase
):
def
test_orders_list_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'orders_list'
)
self
.
assertTemplateUsed
(
response
,
'orders_list.html'
)
class
OrdersDetailTest
(
TestCase
):
def
test_orders_detail_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'orders_detail'
)
self
.
assertTemplateUsed
(
response
,
'orders_detail.html'
)
class
OrdersUpdateTest
(
TestCase
):
def
test_orders_update_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'orders_update'
)
self
.
assertTemplateUsed
(
response
,
'orders_update_form.html'
)
class
OrdersCreateTest
(
TestCase
):
def
test_orders_list_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'orders_create'
)
self
.
assertTemplateUsed
(
response
,
'orders_create_form.html'
)
\ No newline at end of file
Midterm Project/geckodriver.log
View file @
0ffccd07
This diff is collapsed.
Click to expand it.
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