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
Karlo Cabugwang
thegoodplace
Commits
652a232a
Commit
652a232a
authored
Mar 17, 2020
by
Karlo Cabugwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test now include ingredients model with a queryset error
parent
1338edda
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
tests.py
froyo/tests.py
+21
-1
No files found.
froyo/tests.py
View file @
652a232a
from
django.urls
import
resolve
from
django.test
import
TestCase
# Create your tests here.
class
IngredientsListViewTest
(
TestCase
):
def
test_can_open_ingredients_list_view_temp
(
self
):
response
=
self
.
client
.
get
(
'/ingredients'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_list.html'
)
class
IngredientsDetailViewTest
(
TestCase
):
def
test_can_open_ingredients_detail_view_temp
(
self
):
response
=
self
.
client
.
get
(
'/ingredients/detail'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_detail.html'
)
class
IngredientsCreateViewTest
(
TestCase
):
def
test_can_open_ingredients_create_view_temp
(
self
):
response
=
self
.
client
.
get
(
'/ingredients/new'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_create_form.html'
)
class
IngredientsUpdateViewTest
(
TestCase
):
def
test_can_open_ingredients_update_view_temp
(
self
):
response
=
self
.
client
.
get
(
'/ingredients/update'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_update_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