Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm-thegoodplace
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
Abigail Moreno
midterm-thegoodplace
Commits
5bdeba94
Commit
5bdeba94
authored
Mar 18, 2020
by
abbeeeeyyyyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added to the urls of the project
parent
20aec9c0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
+6
-3
tests.py
froyo/tests.py
+3
-1
urls.py
froyo/urls.py
+1
-1
urls.cpython-38.pyc
thegoodplace/__pycache__/urls.cpython-38.pyc
+0
-0
urls.py
thegoodplace/urls.py
+2
-1
No files found.
froyo/tests.py
View file @
5bdeba94
...
...
@@ -2,6 +2,8 @@ from django.test import TestCase
from
django.urls
import
resolve
from
django.http
import
HttpRequest
from
.views
import
HomePage
from
.views
import
Ingredients_ListView
from
.views
import
Ingredients_DetailView
from
.views
import
Ingredients_UpdateFormView
...
...
@@ -26,7 +28,7 @@ from django.template.loader import render_to_string
# Create your tests here.
class
TheGoodPlaceSiteTest
(
TestCase
):
def
test_home_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'
/
froyo/'
)
response
=
self
.
client
.
get
(
'froyo/'
)
self
.
assertTemplateUsed
(
response
,
'froyo.html'
)
def
test_ingredients_list_page_returns_correct_html
(
self
):
...
...
froyo/urls.py
View file @
5bdeba94
...
...
@@ -23,7 +23,7 @@ from .views import Orders_CreateFormView
urlpatterns
=
[
path
(
''
,
HomePage
.
as_view
(),
name
=
'froyo'
),
path
(
'froyo/'
,
HomePage
.
as_view
(),
name
=
'
heroes
'
),
path
(
'froyo/'
,
HomePage
.
as_view
(),
name
=
'
froyo
'
),
path
(
'froyo/ingredients/list/'
,
Ingredients_ListView
.
as_view
(),
name
=
'ingredients_list'
),
path
(
'froyo/ingredients/detail/'
,
Ingredients_DetailView
.
as_view
(),
name
=
'ingredients_detail'
),
...
...
thegoodplace/__pycache__/urls.cpython-38.pyc
View file @
5bdeba94
No preview for this file type
thegoodplace/urls.py
View file @
5bdeba94
...
...
@@ -14,8 +14,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from
django.contrib
import
admin
from
django.urls
import
path
from
django.urls
import
path
,
include
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
''
,
include
(
'froyo.urls'
)),
]
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