Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lopez-django-lab-1
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
Jay Lopez
lopez-django-lab-1
Commits
04e7ca07
Commit
04e7ca07
authored
Mar 07, 2020
by
Jay Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
links redone to be properly functional
parent
c845fe22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
fxntest.py
fxntest.py
+2
-1
index.html
heroes/templates/index.html
+3
-3
No files found.
fxntest.py
View file @
04e7ca07
...
...
@@ -31,7 +31,7 @@ class NewVisitorTest(unittest.TestCase):
selected_hero_link
.
click
()
# She spots the page title and header mentions the name of the hero she selected.
self
.
assertIn
(
hero_name
,
self
.
browser
.
title
)
self
.
assertIn
(
'Detail - '
+
hero_name
,
self
.
browser
.
title
)
# While she is in a specific hero's page, she sees a button labeled "Back to Heroes List".
# She clicks this and she is redirected back to the wiki's homepage.
...
...
@@ -42,6 +42,7 @@ class NewVisitorTest(unittest.TestCase):
self
.
fail
(
'Finish the test!'
)
if
__name__
==
'__main__'
:
unittest
.
main
(
warnings
=
'ignore'
)
\ No newline at end of file
heroes/templates/index.html
View file @
04e7ca07
...
...
@@ -3,8 +3,8 @@
<h1>
Will of the Wisps
</h1>
<h4>
Heroes
</h4>
<ul>
<li
><a
href=
'/hero/cloud/'
>
Cloud (600 HP, 57 ATK)
</a>
</li>
<li
><a
href=
'/hero/jester/'
>
Jester (660 HP, 64 ATK)
</a>
</li>
<li
><a
href=
'/hero/sunflowey/'
>
Sunflowey (650 HP, 43 ATK)
</a>
</li>
<li
onclick=
"location.href='../hero/cloud'"
>
Cloud (600 HP, 57 ATK)
</li>
<li
onclick=
"location.href='../hero/jester'"
>
Jester (660 HP, 64 ATK)
</li>
<li
onclick=
"location.href='../hero/sunflowey'"
>
Sunflowey (650 HP, 43 ATK)
</li>
</ul>
</html>
\ 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