Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS Lab
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
Li Niko M. Arceo
CS Lab
Commits
08d832a3
Commit
08d832a3
authored
Mar 06, 2020
by
Li Niko M. Arceo
🦈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unittest for jester details works
parent
26c216b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
tests.cpython-38.pyc
heroes/__pycache__/tests.cpython-38.pyc
+0
-0
tests.py
heroes/tests.py
+6
-0
No files found.
heroes/__pycache__/tests.cpython-38.pyc
View file @
08d832a3
No preview for this file type
heroes/tests.py
View file @
08d832a3
...
@@ -15,3 +15,9 @@ class CloudTemplateTest(TestCase):
...
@@ -15,3 +15,9 @@ class CloudTemplateTest(TestCase):
def
test_uses_cloud_template
(
self
):
def
test_uses_cloud_template
(
self
):
response
=
self
.
client
.
get
(
'/heroes/cloud'
)
response
=
self
.
client
.
get
(
'/heroes/cloud'
)
self
.
assertTemplateUsed
(
response
,
'detail_cloud.html'
)
self
.
assertTemplateUsed
(
response
,
'detail_cloud.html'
)
class
JesterTemplateTest
(
TestCase
):
def
test_uses_jester_template
(
self
):
response
=
self
.
client
.
get
(
'/heroes/jester'
)
self
.
assertTemplateUsed
(
response
,
'detail_jester.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