Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
project-1-Wang-Alec-185292
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
Alec
project-1-Wang-Alec-185292
Commits
a80a2440
Commit
a80a2440
authored
Mar 18, 2020
by
Alec Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added tests for ingredients pages
parent
7f973efb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
tests.py
thegoodplace/froyo/tests.py
+22
-0
No files found.
thegoodplace/froyo/tests.py
View file @
a80a2440
from
django.test
import
TestCase
# Create your tests here.
class
IngredientsPagesTests
(
TestCase
):
def
test_ingredients_list_page
(
self
):
response
=
self
.
client
.
get
(
'/ingredients_list/'
)
self
.
assertContains
(
response
,
"Ingredients - List"
,
html
=
True
)
self
.
assertTemplateUsed
(
'ingredients_list.html'
)
def
test_ingredients_create_page
(
self
):
response
=
self
.
client
.
get
(
'/ingredients_create/'
)
self
.
assertContains
(
response
,
"Ingredients - Create"
,
html
=
True
)
self
.
assertTemplateUsed
(
'ingredients_create_form.html'
)
def
test_ingredients_update_page
(
self
):
response
=
self
.
client
.
get
(
'/ingredients_update/'
)
self
.
assertContains
(
response
,
"Ingredients - Update"
,
html
=
True
)
self
.
assertTemplateUsed
(
'ingredients_update_form.html'
)
def
test_ingredients_detail_page
(
self
):
response
=
self
.
client
.
get
(
'/ingredients_detail/'
)
self
.
assertContains
(
response
,
"Ingredients - Detail"
,
html
=
True
)
self
.
assertTemplateUsed
(
'ingredients_detail.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