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
dca43cf1
Commit
dca43cf1
authored
Mar 18, 2020
by
Alec Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added tests for orders pages
parent
a80a2440
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 @
dca43cf1
...
...
@@ -23,3 +23,25 @@ class IngredientsPagesTests(TestCase):
response
=
self
.
client
.
get
(
'/ingredients_detail/'
)
self
.
assertContains
(
response
,
"Ingredients - Detail"
,
html
=
True
)
self
.
assertTemplateUsed
(
'ingredients_detail.html'
)
class
OrdersPagesTests
(
TestCase
):
def
test_orders_list_page
(
self
):
response
=
self
.
client
.
get
(
'/orders_list/'
)
self
.
assertContains
(
response
,
"Orders - List"
,
html
=
True
)
self
.
assertTemplateUsed
(
response
,
'orders_list.html'
)
def
test_orders_create_page
(
self
):
response
=
self
.
client
.
get
(
'/orders_create/'
)
self
.
assertContains
(
response
,
"Orders - Create"
,
html
=
True
)
self
.
assertTemplateUsed
(
response
,
'orders_create_form.html'
)
def
test_orders_update_page
(
self
):
response
=
self
.
client
.
get
(
'/orders_update/'
)
self
.
assertContains
(
response
,
"Orders - Update"
,
html
=
True
)
self
.
assertTemplateUsed
(
response
,
'orders_update_form.html'
)
def
test_orders_detail_page
(
self
):
response
=
self
.
client
.
get
(
'/orders_detail/'
)
self
.
assertContains
(
response
,
"Orders - Detail"
,
html
=
True
)
self
.
assertTemplateUsed
(
response
,
'orders_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