Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI40_Lab01_Willowisp
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
Ana Gabrielle S. Caligagan
CSCI40_Lab01_Willowisp
Commits
25b4de57
Commit
25b4de57
authored
Mar 06, 2020
by
Ana Gabrielle S. Caligagan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing tests and urls.
parent
33d23bb4
Pipeline
#834
failed with stages
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
tests.cpython-37.pyc
heroes/__pycache__/tests.cpython-37.pyc
+0
-0
urls.cpython-37.pyc
heroes/__pycache__/urls.cpython-37.pyc
+0
-0
tests.py
heroes/tests.py
+3
-3
urls.py
heroes/urls.py
+3
-3
No files found.
heroes/__pycache__/tests.cpython-37.pyc
View file @
25b4de57
No preview for this file type
heroes/__pycache__/urls.cpython-37.pyc
View file @
25b4de57
No preview for this file type
heroes/tests.py
View file @
25b4de57
...
...
@@ -9,19 +9,19 @@ class HomePageTest(TestCase):
class
CloudTest
(
TestCase
):
def
test_uses_cloud_template
(
self
):
response
=
self
.
client
.
get
(
'/cloud/'
)
response
=
self
.
client
.
get
(
'/
heroes/
cloud/'
)
self
.
assertTemplateUsed
(
response
,
'detail_cloud.html'
)
class
JesterTest
(
TestCase
):
def
test_uses_jester_template
(
self
):
response
=
self
.
client
.
get
(
'/jester/'
)
response
=
self
.
client
.
get
(
'/
heroes/
jester/'
)
self
.
assertTemplateUsed
(
response
,
'detail_jester.html'
)
class
SunfloweyTest
(
TestCase
):
def
test_uses_sunflowey_template
(
self
):
response
=
self
.
client
.
get
(
'/sunflowey/'
)
response
=
self
.
client
.
get
(
'/
heroes/
sunflowey/'
)
self
.
assertTemplateUsed
(
response
,
'detail_sunflowey.html'
)
...
...
heroes/urls.py
View file @
25b4de57
...
...
@@ -4,8 +4,8 @@ from .views import HomeListView, CloudDetailView, JesterDetailView, SunfloweyDet
urlpatterns
=
[
url
(
r'^$'
,
HomeListView
.
as_view
(),
name
=
'home'
),
url
(
r'^cloud/$'
,
CloudDetailView
.
as_view
(),
name
=
'detail_cloud'
),
url
(
r'^jester/$'
,
JesterDetailView
.
as_view
(),
name
=
'detail_jester'
),
url
(
r'^sunflowey/$'
,
SunfloweyDetailView
.
as_view
(),
name
=
'detail_sunflowey'
),
url
(
r'^
heroes/
cloud/$'
,
CloudDetailView
.
as_view
(),
name
=
'detail_cloud'
),
url
(
r'^
heroes/
jester/$'
,
JesterDetailView
.
as_view
(),
name
=
'detail_jester'
),
url
(
r'^
heroes/
sunflowey/$'
,
SunfloweyDetailView
.
as_view
(),
name
=
'detail_sunflowey'
),
]
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