Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
willowisp_valenzuela
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
Anton Ralph Valenzuela
willowisp_valenzuela
Commits
819c84c9
Commit
819c84c9
authored
Mar 06, 2020
by
Anton Ralph F. Valenzuela
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Conformed to PEP-8.
parent
82c081c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
functional_tests.py
functional_tests.py
+1
-2
tests.py
heroes/tests.py
+1
-0
urls.py
heroes/urls.py
+4
-4
No files found.
functional_tests.py
View file @
819c84c9
from
selenium
import
webdriver
from
selenium
import
webdriver
import
unittest
import
unittest
from
selenium
import
webdriver
class
NewVisitorTest
(
unittest
.
TestCase
):
class
NewVisitorTest
(
unittest
.
TestCase
):
def
setUp
(
self
):
def
setUp
(
self
):
self
.
browser
=
webdriver
.
Firefox
()
self
.
browser
=
webdriver
.
Firefox
()
...
...
heroes/tests.py
View file @
819c84c9
from
django.test
import
TestCase
from
django.test
import
TestCase
class
HomePageTest
(
TestCase
):
class
HomePageTest
(
TestCase
):
def
test_heroes_page_returns_correct_html
(
self
):
def
test_heroes_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/heroes/'
)
response
=
self
.
client
.
get
(
'/heroes/'
)
self
.
assertTemplateUsed
(
response
,
'heroes.html'
)
self
.
assertTemplateUsed
(
response
,
'heroes.html'
)
...
...
heroes/urls.py
View file @
819c84c9
...
@@ -3,8 +3,8 @@ from django.conf.urls import url
...
@@ -3,8 +3,8 @@ from django.conf.urls import url
from
.views
import
heroes_page
,
cloud_page
,
sunflowey_page
,
jester_page
from
.views
import
heroes_page
,
cloud_page
,
sunflowey_page
,
jester_page
urlpatterns
=
[
urlpatterns
=
[
url
(
r'^heroes/$'
,
heroes_page
,
name
=
'heroes_page'
),
url
(
r'^heroes/$'
,
heroes_page
,
name
=
'heroes_page'
),
url
(
r'^hero/cloud$'
,
cloud_page
,
name
=
'cloud_page'
),
url
(
r'^hero/cloud$'
,
cloud_page
,
name
=
'cloud_page'
),
url
(
r'^hero/sunflowey$'
,
sunflowey_page
,
name
=
'cloud_page'
),
url
(
r'^hero/sunflowey$'
,
sunflowey_page
,
name
=
'cloud_page'
),
url
(
r'^hero/jester$'
,
jester_page
,
name
=
'cloud_page'
),
url
(
r'^hero/jester$'
,
jester_page
,
name
=
'cloud_page'
),
]
]
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