Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
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
Santino Campos
thegoodplace
Commits
f496cbc4
Commit
f496cbc4
authored
Mar 17, 2020
by
Santino Campos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write unit tests for views for ingredients model
parent
e29f11e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
tests.py
froyo/tests.py
+17
-0
No files found.
froyo/tests.py
View file @
f496cbc4
...
@@ -39,4 +39,21 @@ class RecipesViewTest(TestCase):
...
@@ -39,4 +39,21 @@ class RecipesViewTest(TestCase):
response
=
self
.
client
.
get
(
'/recipes/create'
)
response
=
self
.
client
.
get
(
'/recipes/create'
)
self
.
assertTemplateUsed
(
response
,
'recipes_create_form.html'
)
self
.
assertTemplateUsed
(
response
,
'recipes_create_form.html'
)
class
OrdersViewTest
(
TestCase
):
def
test_orders_list_view_returns_proper_template
(
self
):
response
=
self
.
client
.
get
(
'/orders/list'
)
self
.
assertTemplateUsed
(
response
,
'orders_list.html'
)
def
test_orders_detail_view_returns_proper_template
(
self
):
response
=
self
.
client
.
get
(
'/orders/detail'
)
self
.
assertTemplateUsed
(
response
,
'orders_detail.html'
)
def
test_orders_update_form_returns_proper_template
(
self
):
response
=
self
.
client
.
get
(
'/orders/update'
)
self
.
assertTemplateUsed
(
response
,
'orders_update_form.html'
)
def
test_orders_create_form_view_returns_proper_template
(
self
):
response
=
self
.
client
.
get
(
'/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