Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI 40 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
Lance Michael O. Co
CSCI 40 Midterm Project
Commits
f283a687
Commit
f283a687
authored
Mar 13, 2020
by
Lance Michael O. Co
😢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ingredient tests made
parent
904c0e03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
4 deletions
+33
-4
tests.py
froyo/tests.py
+33
-4
No files found.
froyo/tests.py
View file @
f283a687
...
...
@@ -2,8 +2,37 @@
from
django.test
import
TestCase
class
NewTask
Test
(
TestCase
):
class
HomePage
Test
(
TestCase
):
def
test_can_get_create_template
(
self
):
response
=
self
.
client
.
get
(
'/tasks/new'
)
self
.
assertTemplateUsed
(
response
,
'task_create_form.html'
)
\ No newline at end of file
def
test_uses_home_template
(
self
):
response
=
self
.
client
.
get
(
'/'
)
self
.
assertTemplateUsed
(
response
,
'home.html'
)
#ingredients tests
class
IngredientsListTest
(
TestCase
):
def
test_uses_list_template
(
self
):
response
=
self
.
client
.
get
(
'/ingredients/list'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_list.html'
)
class
IngredientsDetailTest
(
TestCase
):
def
test_uses_list_template
(
self
):
response
=
self
.
client
.
get
(
'/ingredients/detail'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_detail.html'
)
class
IngredientsUpdateTest
(
TestCase
):
def
test_uses_list_template
(
self
):
response
=
self
.
client
.
get
(
'/ingredients/update'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_update_form.html'
)
class
IngredientsCreateTest
(
TestCase
):
def
test_uses_list_template
(
self
):
response
=
self
.
client
.
get
(
'/ingredients/create'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_create_form.html'
)
\ No newline at end of file
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