Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
Lab1
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
Kyla Nicole Villegas
Lab1
Commits
15adec11
Commit
15adec11
authored
Mar 07, 2020
by
Kyla Villegas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created and passed first unit testing
parent
06611f9b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
1 deletion
+9
-1
tests.cpython-38.pyc
heroes/__pycache__/tests.cpython-38.pyc
+0
-0
views.cpython-38.pyc
heroes/__pycache__/views.cpython-38.pyc
+0
-0
tests.py
heroes/tests.py
+8
-0
views.py
heroes/views.py
+1
-1
No files found.
heroes/__pycache__/tests.cpython-38.pyc
View file @
15adec11
No preview for this file type
heroes/__pycache__/views.cpython-38.pyc
View file @
15adec11
No preview for this file type
heroes/tests.py
View file @
15adec11
from
django.urls
import
resolve
from
django.test
import
TestCase
from
.views
import
home_page
# Create your tests here.
class
HomePageTest
(
TestCase
):
def
test_root_url_resolves_to_home_page_view
(
self
):
found
=
resolve
(
'/'
)
self
.
assertEqual
(
found
.
func
,
home_page
)
heroes/views.py
View file @
15adec11
...
...
@@ -2,5 +2,5 @@ from django.shortcuts import render
# Create your views here.
def
home_page
():
def
home_page
(
request
):
pass
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