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
28755e2b
Commit
28755e2b
authored
Mar 18, 2020
by
Alec Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added tests for home directory
parent
b0ffdb16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
tests.py
thegoodplace/froyo/tests.py
+23
-0
No files found.
thegoodplace/froyo/tests.py
View file @
28755e2b
...
...
@@ -67,3 +67,26 @@ class RecipesPagesTests(TestCase):
response
=
self
.
client
.
get
(
'/recipes_detail/'
)
self
.
assertContains
(
response
,
"Recipes - Detail"
,
html
=
True
)
self
.
assertTemplateUsed
(
response
,
'recipes_detail.html'
)
class
HomePageTest
(
TestCase
):
def
test_homepage
(
self
):
response
=
self
.
client
.
get
(
'/'
)
self
.
assertContains
(
response
,
"Recipes - Detail"
,
html
=
True
)
self
.
assertContains
(
response
,
"Orders - Detail"
,
html
=
True
)
self
.
assertContains
(
response
,
"Ingredients - Detail"
,
html
=
True
)
self
.
assertContains
(
response
,
"Recipes - Create"
,
html
=
True
)
self
.
assertContains
(
response
,
"Orders - Create"
,
html
=
True
)
self
.
assertContains
(
response
,
"Ingredients - Create"
,
html
=
True
)
self
.
assertContains
(
response
,
"Recipes - Update"
,
html
=
True
)
self
.
assertContains
(
response
,
"Orders - Update"
,
html
=
True
)
self
.
assertContains
(
response
,
"Ingredients - Update"
,
html
=
True
)
self
.
assertContains
(
response
,
"Recipes - List"
,
html
=
True
)
self
.
assertContains
(
response
,
"Orders - List"
,
html
=
True
)
self
.
assertContains
(
response
,
"Ingredients - List"
,
html
=
True
)
self
.
assertTemplateUsed
(
response
,
'home.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