Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
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
Cidney P. Ciacho
thegoodplace
Commits
0d2aafc6
Commit
0d2aafc6
authored
Mar 20, 2020
by
Cidney P. Ciacho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test cases came back OK.
parent
9942417a
Pipeline
#1141
failed with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
26 deletions
+26
-26
tests.py
froyo/tests.py
+12
-12
urls.py
froyo/urls.py
+12
-12
views.py
froyo/views.py
+2
-2
No files found.
froyo/tests.py
View file @
0d2aafc6
...
...
@@ -4,82 +4,82 @@ from django.test import TestCase
class
IngListTest
(
TestCase
):
def
test_home_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'
ingredients_
list'
)
response
=
self
.
client
.
get
(
'
/ingredients/
list'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_list.html'
)
class
IngDetailTest
(
TestCase
):
def
test_home_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'
ingredients_
detail'
)
response
=
self
.
client
.
get
(
'
/ingredients/
detail'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_detail.html'
)
class
IngUpdateTest
(
TestCase
):
def
test_home_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'
ingredients_update_
form'
)
response
=
self
.
client
.
get
(
'
/ingredients/update/
form'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_update_form.html'
)
class
IngCreateTest
(
TestCase
):
def
test_home_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'
ingredients_create_
form'
)
response
=
self
.
client
.
get
(
'
/ingredients/create/
form'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_create_form.html'
)
class
RecipesListTest
(
TestCase
):
def
test_home_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'
recipes_
list'
)
response
=
self
.
client
.
get
(
'
/recipes/
list'
)
self
.
assertTemplateUsed
(
response
,
'recipes_list.html'
)
class
RecipesDetailTest
(
TestCase
):
def
test_home_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'
recipes_
detail'
)
response
=
self
.
client
.
get
(
'
/recipes/
detail'
)
self
.
assertTemplateUsed
(
response
,
'recipes_detail.html'
)
class
RecipesUpdateTest
(
TestCase
):
def
test_home_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'
recipes_update_
form'
)
response
=
self
.
client
.
get
(
'
/recipes/update/
form'
)
self
.
assertTemplateUsed
(
response
,
'recipes_update_form.html'
)
class
RecipesCreateTest
(
TestCase
):
def
test_home_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'
recipes_create_
form'
)
response
=
self
.
client
.
get
(
'
/recipes/create/
form'
)
self
.
assertTemplateUsed
(
response
,
'recipes_create_form.html'
)
class
OrdersListTest
(
TestCase
):
def
test_home_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'
orders_
list'
)
response
=
self
.
client
.
get
(
'
/orders/
list'
)
self
.
assertTemplateUsed
(
response
,
'orders_list.html'
)
class
OrdersDetailTest
(
TestCase
):
def
test_home_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'
orders_
detail'
)
response
=
self
.
client
.
get
(
'
/orders/
detail'
)
self
.
assertTemplateUsed
(
response
,
'orders_detail.html'
)
class
OrdersUpdateTest
(
TestCase
):
def
test_home_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'
orders_update_
form'
)
response
=
self
.
client
.
get
(
'
/orders/update/
form'
)
self
.
assertTemplateUsed
(
response
,
'orders_update_form.html'
)
class
OrdersCreateTest
(
TestCase
):
def
test_home_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'
orders_create_
form'
)
response
=
self
.
client
.
get
(
'
/orders/create/
form'
)
self
.
assertTemplateUsed
(
response
,
'orders_create_form.html'
)
\ No newline at end of file
froyo/urls.py
View file @
0d2aafc6
...
...
@@ -4,18 +4,18 @@ from .views import IngListView, IngDetailView, IngUpdateView, IngCreateView, Rec
urlpatterns
=
[
url
(
r'^ingredients
_
list$'
,
IngListView
.
as_view
(),
name
=
'ingredients_list'
),
url
(
r'^ingredients
_
detail$'
,
IngDetailView
.
as_view
(),
name
=
'ingredients_detail'
),
url
(
r'^ingredients
_update_
form$'
,
IngUpdateView
.
as_view
(),
name
=
'ingredients_update_form'
),
url
(
r'^ingredients
_create_
form$'
,
IngCreateView
.
as_view
(),
name
=
'ingredients_create_form'
),
url
(
r'^ingredients
/
list$'
,
IngListView
.
as_view
(),
name
=
'ingredients_list'
),
url
(
r'^ingredients
/
detail$'
,
IngDetailView
.
as_view
(),
name
=
'ingredients_detail'
),
url
(
r'^ingredients
/update/
form$'
,
IngUpdateView
.
as_view
(),
name
=
'ingredients_update_form'
),
url
(
r'^ingredients
/create/
form$'
,
IngCreateView
.
as_view
(),
name
=
'ingredients_create_form'
),
url
(
r'^recipes
_
list$'
,
RecipesListView
.
as_view
(),
name
=
'recipes_list'
),
url
(
r'^recipes
_
detail$'
,
RecipesDetailView
.
as_view
(),
name
=
'recipes_detail'
),
url
(
r'^recipes
_update_
form$'
,
RecipesUpdateView
.
as_view
(),
name
=
'recipes_update_form'
),
url
(
r'^recipes
_create_
form$'
,
RecipesCreateView
.
as_view
(),
name
=
'recipes_create_form'
),
url
(
r'^recipes
/
list$'
,
RecipesListView
.
as_view
(),
name
=
'recipes_list'
),
url
(
r'^recipes
/
detail$'
,
RecipesDetailView
.
as_view
(),
name
=
'recipes_detail'
),
url
(
r'^recipes
/update/
form$'
,
RecipesUpdateView
.
as_view
(),
name
=
'recipes_update_form'
),
url
(
r'^recipes
/create/
form$'
,
RecipesCreateView
.
as_view
(),
name
=
'recipes_create_form'
),
url
(
r'^orders
_
list$'
,
OrdersListView
.
as_view
(),
name
=
'orders_list'
),
url
(
r'^orders
_
detail$'
,
OrdersDetailView
.
as_view
(),
name
=
'orders_detail'
),
url
(
r'^orders
_update_
form$'
,
OrdersUpdateView
.
as_view
(),
name
=
'orders_update_form'
),
url
(
r'^orders
_create_
form$'
,
OrdersCreateView
.
as_view
(),
name
=
'orders_create_form'
)
url
(
r'^orders
/
list$'
,
OrdersListView
.
as_view
(),
name
=
'orders_list'
),
url
(
r'^orders
/
detail$'
,
OrdersDetailView
.
as_view
(),
name
=
'orders_detail'
),
url
(
r'^orders
/update/
form$'
,
OrdersUpdateView
.
as_view
(),
name
=
'orders_update_form'
),
url
(
r'^orders
/create/
form$'
,
OrdersCreateView
.
as_view
(),
name
=
'orders_create_form'
)
]
\ No newline at end of file
froyo/views.py
View file @
0d2aafc6
...
...
@@ -10,7 +10,7 @@ class IngDetailView(TemplateView):
class
IngUpdateView
(
TemplateView
):
template_name
=
'
ingredients_update_form.html'
template_name
=
'ingredients_update_form.html'
class
IngCreateView
(
TemplateView
):
...
...
@@ -34,7 +34,7 @@ class RecipesCreateView(TemplateView):
class
OrdersListView
(
TemplateView
):
template_name
=
'
orders_list.html'
template_name
=
'orders_list.html'
class
OrdersDetailView
(
TemplateView
):
...
...
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