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
8414e41b
Commit
8414e41b
authored
Mar 07, 2020
by
Ana Gabrielle S. Caligagan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More testing
parent
d66f6ef7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
urls.cpython-37.pyc
heroes/__pycache__/urls.cpython-37.pyc
+0
-0
views.cpython-37.pyc
heroes/__pycache__/views.cpython-37.pyc
+0
-0
lab1_functional_test.py
lab1_functional_test.py
+5
-5
urls.cpython-37.pyc
willowisp/__pycache__/urls.cpython-37.pyc
+0
-0
No files found.
heroes/__pycache__/urls.cpython-37.pyc
View file @
8414e41b
No preview for this file type
heroes/__pycache__/views.cpython-37.pyc
View file @
8414e41b
No preview for this file type
lab1_functional_test.py
View file @
8414e41b
...
@@ -36,17 +36,17 @@ class NewVisitorTest(unittest.TestCase):
...
@@ -36,17 +36,17 @@ class NewVisitorTest(unittest.TestCase):
# containing more information about the hero (additional stats, lore, image).
# containing more information about the hero (additional stats, lore, image).
self
.
browser
.
get
(
'http://localhost:8000/hero/cloud/'
)
self
.
browser
.
get
(
'http://localhost:8000/hero/cloud/'
)
self
.
browser
.
get
(
'http://localhost:8000/hero/jester/'
)
#
self.browser.get('http://localhost:8000/hero/jester/')
self
.
browser
.
get
(
'http://localhost:8000/hero/sunflowey/'
)
#
self.browser.get('http://localhost:8000/hero/sunflowey/')
# She spots the page title and header mentions the name of the hero she selected.
# She spots the page title and header mentions the name of the hero she selected.
self
.
assertIn
(
'Cloud'
,
self
.
browser
.
title
)
self
.
assertIn
(
'Cloud'
,
self
.
browser
.
title
)
self
.
assertIn
(
'Jester'
,
self
.
browser
.
title
)
#
self.assertIn('Jester', self.browser.title)
self
.
assertIn
(
'Sunflowey'
,
self
.
browser
.
title
)
#
self.assertIn('Sunflowey', self.browser.title)
# While she is in a specific hero's page, she sees a button labeled "Back to Heroes List".
# 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.
# She clicks this and she is redirected back to the wiki's homepage.
browser
.
get
(
'http://localhost:8000'
)
self
.
browser
.
get
(
'http://localhost:8000'
)
self
.
fail
(
'Finish the test!'
)
self
.
fail
(
'Finish the test!'
)
...
...
willowisp/__pycache__/urls.cpython-37.pyc
View file @
8414e41b
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