Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
Lab01
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
Dan Mark Restoles
Lab01
Commits
667e1f0f
Commit
667e1f0f
authored
Mar 06, 2020
by
Dan Mark Restoles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
second test passed
parent
fdededa0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
tests.cpython-38.pyc
heroes/__pycache__/tests.cpython-38.pyc
+0
-0
urls.cpython-38.pyc
heroes/__pycache__/urls.cpython-38.pyc
+0
-0
tests.py
heroes/tests.py
+9
-2
urls.py
heroes/urls.py
+1
-0
No files found.
heroes/__pycache__/tests.cpython-38.pyc
View file @
667e1f0f
No preview for this file type
heroes/__pycache__/urls.cpython-38.pyc
View file @
667e1f0f
No preview for this file type
heroes/tests.py
View file @
667e1f0f
...
...
@@ -5,6 +5,13 @@ from .views import HeroesView, CloudView, JesterView, SunfloweyView
class
HeroesPageTest
(
TestCase
):
def
test_
root_
url_resolves_to_heroes_page_view
(
self
):
def
test_url_resolves_to_heroes_page_view
(
self
):
found
=
resolve
(
'/heroes/'
)
self
.
assertEqual
(
found
.
func
.
__name__
,
HeroesView
.
as_view
()
.
__name__
)
class
HeroPageTest
(
TestCase
):
def
test_url_resolves_to_cloud_page_view
(
self
):
found
=
resolve
(
'/hero/cloud/'
)
self
.
assertEqual
(
found
.
func
.
__name__
,
CloudView
.
as_view
()
.
__name__
)
\ No newline at end of file
heroes/urls.py
View file @
667e1f0f
...
...
@@ -3,4 +3,5 @@ from .views import HeroesView, CloudView, JesterView, SunfloweyView
urlpatterns
=
[
url
(
r'^heroes/'
,
HeroesView
.
as_view
(),
name
=
'Heroes'
),
url
(
r'^hero/cloud/'
,
CloudView
.
as_view
(),
name
=
'Detail - Cloud'
),
]
\ No newline at end of file
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