Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
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
Keith Adrian Santos
Django Lab 1
Commits
70f1f870
Commit
70f1f870
authored
Mar 06, 2020
by
Keith Adrian Santos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in the lab1_functional_test, made a test to look for the hero's names and etc
parent
eb13955f
Pipeline
#791
canceled with stages
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
53 additions
and
1 deletion
+53
-1
lab1_functional_test.py
lab1_functional_test.py
+4
-1
cloud.png
willowisp/heroes/templates/cloud.png
+0
-0
detail_cloud.html
willowisp/heroes/templates/detail_cloud.html
+16
-0
detail_jester.html
willowisp/heroes/templates/detail_jester.html
+16
-0
detail_sunflowey.html
willowisp/heroes/templates/detail_sunflowey.html
+16
-0
jester.png
willowisp/heroes/templates/jester.png
+0
-0
sunflowey.png
willowisp/heroes/templates/sunflowey.png
+0
-0
views.py
willowisp/heroes/views.py
+1
-0
settings.cpython-38.pyc
willowisp/willowisp/__pycache__/settings.cpython-38.pyc
+0
-0
No files found.
lab1_functional_test.py
View file @
70f1f870
...
@@ -15,10 +15,13 @@ class NewVisitorTest(unittest.TestCase):
...
@@ -15,10 +15,13 @@ class NewVisitorTest(unittest.TestCase):
# She notices the page title and header mention
# She notices the page title and header mention
# 'The Will of the Wisps Wiki'
# 'The Will of the Wisps Wiki'
self
.
assertIn
(
'The Will of the Wisps Wiki'
,
self
.
browser
.
title
)
#
self.assertIn('The Will of the Wisps Wiki', self.browser.title)
# She sees a list containing three heroes with their corresponding
# She sees a list containing three heroes with their corresponding
# names, health points, and damage
# names, health points, and damage
listtext
=
self
.
browser
.
find_element_by_tag_name
(
'li'
)
.
text
self
.
assertTrue
(
'Cloud'
in
listtext
)
# When she selects one of the heroes, she is sent to another page
# When she selects one of the heroes, she is sent to another page
# containing more information about the hero (additional stats, lore, image).
# containing more information about the hero (additional stats, lore, image).
...
...
willowisp/heroes/templates/cloud.png
0 → 100644
View file @
70f1f870
6.92 KB
willowisp/heroes/templates/detail_cloud.html
0 → 100644
View file @
70f1f870
<!DOCTYPE html>
<html>
<head>
<title>
Detail - Cloud
</title>
</head>
<body>
<img
src=
"./cloud.png"
style=
"width: 10vw;"
/>
<h1>
Detail - Cloud
</h1>
<dl>
<dt>
Health Points
</dt><dd>
600
</dd>
<dt>
Base Attack Damage
</dt><dd>
57
</dd>
<dt>
Skills
</dt><dd>
Nimbus, Rain Cloud, Thunderbolt
</dd>
<dt>
Lore
</dt><dd>
I am a cloud. When I pee you call it 'rain'.
</dd>
</dl>
</body>
</html>
\ No newline at end of file
willowisp/heroes/templates/detail_jester.html
0 → 100644
View file @
70f1f870
<!DOCTYPE html>
<html>
<head>
<title>
Detail - Jester
</title>
</head>
<body>
<img
src=
"./jester.png"
style=
"width: 10vw;"
/>
<h1>
Detail - Jester
</h1>
<dl>
<dt>
Health Points
</dt><dd>
660
</dd>
<dt>
Base Attack Damage
</dt><dd>
64
</dd>
<dt>
Skills
</dt><dd>
Laugh, Dance, Smile
</dd>
<dt>
Lore
</dt><dd>
I do it for the LOLs.
</dd>
</dl>
</body>
</html>
\ No newline at end of file
willowisp/heroes/templates/detail_sunflowey.html
0 → 100644
View file @
70f1f870
<!DOCTYPE html>
<html>
<head>
<title>
Detail - Sunflowey
</title>
</head>
<body>
<img
src=
"./sunflowey.png"
style=
"width: 10vw;"
/>
<h1>
Detail - Sunflowey
</h1>
<dl>
<dt>
Health Points
</dt><dd>
650
</dd>
<dt>
Base Attack Damage
</dt><dd>
43
</dd>
<dt>
Skills
</dt><dd>
Power Pellet, Sunshine, Pollen Punch
</dd>
<dt>
Lore
</dt><dd>
I am Sunflowey. Sometimes a sun, sometimes a flower.
</dd>
</dl>
</body>
</html>
\ No newline at end of file
willowisp/heroes/templates/jester.png
0 → 100644
View file @
70f1f870
66.3 KB
willowisp/heroes/templates/sunflowey.png
0 → 100644
View file @
70f1f870
13.9 KB
willowisp/heroes/views.py
View file @
70f1f870
from
django.shortcuts
import
render
from
django.shortcuts
import
render
home_page
=
None
# Create your views here.
# Create your views here.
willowisp/willowisp/__pycache__/settings.cpython-38.pyc
View file @
70f1f870
No preview for this file type
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