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
Bienvenido Villabroza
thegoodplace
Commits
9d9734eb
Commit
9d9734eb
authored
Mar 18, 2020
by
thisLexic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test created for ingredients_list template
parent
a6156bdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
tests.py
thegoodplace/froyo/tests.py
+12
-2
No files found.
thegoodplace/froyo/tests.py
View file @
9d9734eb
...
...
@@ -3,9 +3,19 @@ from django.urls import resolve
from
selenium
import
webdriver
class
NewVisitor
Test
(
unittest
.
TestCase
):
class
FroyoPages
Test
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
browser
=
webdriver
.
Firefox
()
def
tearDown
(
self
):
self
.
browser
.
quit
()
\ No newline at end of file
self
.
browser
.
quit
()
def
test_can_display_ingredients_list
(
self
):
self
.
browser
.
get
(
'http://127.0.0.1:8000/froyo/ingredients_list/'
)
correct_value
=
'Ingredients - List'
self
.
assertIn
(
correct_value
,
self
.
browser
.
title
)
detail
=
self
.
browser
.
find_element_by_tag_name
(
'h1'
)
self
.
assertEqual
(
detail
.
get_attribute
(
'innerHTML'
),
correct_value
)
def
test_can_display_all_froyo_pages
(
self
):
self
.
fail
(
'Finish the test!'
)
\ No newline at end of file
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