Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI 40 Midterm Project
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
Li Niko M. Arceo
CSCI 40 Midterm Project
Commits
8d39b3f9
Commit
8d39b3f9
authored
Mar 12, 2020
by
Li Niko M. Arceo
🦈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
something's wrong with the homepage test so everything else is commented out and im confused
parent
f1fda28d
Pipeline
#964
failed with stages
Changes
7
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
48 deletions
+48
-48
__init__.cpython-38.pyc
froyo/__pycache__/__init__.cpython-38.pyc
+0
-0
tests.cpython-38.pyc
froyo/__pycache__/tests.cpython-38.pyc
+0
-0
urls.cpython-38.pyc
froyo/__pycache__/urls.cpython-38.pyc
+0
-0
views.cpython-38.pyc
froyo/__pycache__/views.cpython-38.pyc
+0
-0
__init__.cpython-38.pyc
froyo/migrations/__pycache__/__init__.cpython-38.pyc
+0
-0
tests.py
froyo/tests.py
+48
-48
urls.cpython-38.pyc
thegoodplace/__pycache__/urls.cpython-38.pyc
+0
-0
No files found.
froyo/__pycache__/__init__.cpython-38.pyc
0 → 100644
View file @
8d39b3f9
File added
froyo/__pycache__/tests.cpython-38.pyc
0 → 100644
View file @
8d39b3f9
File added
froyo/__pycache__/urls.cpython-38.pyc
0 → 100644
View file @
8d39b3f9
File added
froyo/__pycache__/views.cpython-38.pyc
0 → 100644
View file @
8d39b3f9
File added
froyo/migrations/__pycache__/__init__.cpython-38.pyc
0 → 100644
View file @
8d39b3f9
File added
froyo/tests.py
View file @
8d39b3f9
...
...
@@ -7,76 +7,76 @@ class HomePageTest(TestCase):
self
.
assertTemplateUsed
(
response
,
'home.html'
)
#ingredients tests
class
IngredientsListTest
(
TestCase
):
#
class IngredientsListTest(TestCase):
def
test_uses_ingredients_list_template
(
self
):
response
=
self
.
client
.
get
(
'/ingredients/list'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_list.html'
)
#
def test_uses_ingredients_list_template(self):
#
response = self.client.get('/ingredients/list')
#
self.assertTemplateUsed(response,'ingredients_list.html')
class
IngredientsDetailTest
(
TestCase
):
#
class IngredientsDetailTest(TestCase):
def
test_uses_ingredients_detail_template
(
self
):
response
=
self
.
client
.
get
(
'/ingredients/detail'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_detail.html'
)
#
def test_uses_ingredients_detail_template(self):
#
response = self.client.get('/ingredients/detail')
#
self.assertTemplateUsed(response,'ingredients_detail.html')
class
IngredientsUpdateTest
(
TestCase
):
#
class IngredientsUpdateTest(TestCase):
def
test_uses_ingredients_update_template
(
self
):
response
=
self
.
client
.
get
(
'/ingredients/update'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_update_form.html'
)
#
def test_uses_ingredients_update_template(self):
#
response = self.client.get('/ingredients/update')
#
self.assertTemplateUsed(response,'ingredients_update_form.html')
class
IngredientsCreateTest
(
TestCase
):
#
class IngredientsCreateTest(TestCase):
def
test_uses_ingredients_create_template
(
self
):
response
=
self
.
client
.
get
(
'/ingredients/create'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_create_form.html'
)
#
def test_uses_ingredients_create_template(self):
#
response = self.client.get('/ingredients/create')
#
self.assertTemplateUsed(response,'ingredients_create_form.html')
#recipes tests
class
RecipesListTest
(
TestCase
):
#
class RecipesListTest(TestCase):
def
test_uses_recipes_list_template
(
self
):
response
=
self
.
client
.
get
(
'/recipes/list'
)
self
.
assertTemplateUsed
(
response
,
'recipes_list.html'
)
#
def test_uses_recipes_list_template(self):
#
response = self.client.get('/recipes/list')
#
self.assertTemplateUsed(response,'recipes_list.html')
class
RecipesDetailTest
(
TestCase
):
#
class RecipesDetailTest(TestCase):
def
test_uses_recipes_detail_template
(
self
):
response
=
self
.
client
.
get
(
'/recipes/detail'
)
self
.
assertTemplateUsed
(
response
,
'recipes_detail.html'
)
#
def test_uses_recipes_detail_template(self):
#
response = self.client.get('/recipes/detail')
#
self.assertTemplateUsed(response,'recipes_detail.html')
class
RecipesUpdateTest
(
TestCase
):
#
class RecipesUpdateTest(TestCase):
def
test_uses_recipes_update_template
(
self
):
response
=
self
.
client
.
get
(
'/recipes/update'
)
self
.
assertTemplateUsed
(
response
,
'recipes_update_form.html'
)
#
def test_uses_recipes_update_template(self):
#
response = self.client.get('/recipes/update')
#
self.assertTemplateUsed(response,'recipes_update_form.html')
class
RecipesCreateTest
(
TestCase
):
#
class RecipesCreateTest(TestCase):
def
test_uses_recipes_create_template
(
self
):
response
=
self
.
client
.
get
(
'/recipes/create'
)
self
.
assertTemplateUsed
(
response
,
'recipes_create_form.html'
)
#
def test_uses_recipes_create_template(self):
#
response = self.client.get('/recipes/create')
#
self.assertTemplateUsed(response,'recipes_create_form.html')
#orders tests
class
OrdersListTest
(
TestCase
):
#
class OrdersListTest(TestCase):
def
test_uses_orders_list_template
(
self
):
response
=
self
.
client
.
get
(
'/orders/list'
)
self
.
assertTemplateUsed
(
response
,
'orders_list.html'
)
#
def test_uses_orders_list_template(self):
#
response = self.client.get('/orders/list')
#
self.assertTemplateUsed(response,'orders_list.html')
class
OrdersDetailTest
(
TestCase
):
#
class OrdersDetailTest(TestCase):
def
test_uses_orders_detail_template
(
self
):
response
=
self
.
client
.
get
(
'/orders/detail'
)
self
.
assertTemplateUsed
(
response
,
'orders_detail.html'
)
#
def test_uses_orders_detail_template(self):
#
response = self.client.get('/orders/detail')
#
self.assertTemplateUsed(response,'orders_detail.html')
class
OrdersUpdateTest
(
TestCase
):
#
class OrdersUpdateTest(TestCase):
def
test_uses_orders_update_template
(
self
):
response
=
self
.
client
.
get
(
'/orders/update'
)
self
.
assertTemplateUsed
(
response
,
'orders_update_form.html'
)
#
def test_uses_orders_update_template(self):
#
response = self.client.get('/orders/update')
#
self.assertTemplateUsed(response,'orders_update_form.html')
class
OrdersCreateTest
(
TestCase
):
#
class OrdersCreateTest(TestCase):
def
test_uses_orders_create_template
(
self
):
response
=
self
.
client
.
get
(
'/orders/create'
)
self
.
assertTemplateUsed
(
response
,
'orders_create_form.html'
)
\ No newline at end of file
# def test_uses_orders_create_template(self):
# response = self.client.get('/orders/create')
# self.assertTemplateUsed(response,'orders_create_form.html')
\ No newline at end of file
thegoodplace/__pycache__/urls.cpython-38.pyc
0 → 100644
View file @
8d39b3f9
File added
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