Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
theGoodPlaceFroyo
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
1
Merge Requests
1
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
Neil Patrick Lim de los Reyes
theGoodPlaceFroyo
Commits
f03d4ecf
Commit
f03d4ecf
authored
Mar 18, 2020
by
Neil Patrick Lim de los Reyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added two tests, added to .gitignore, so far tests works commit
parent
95dc56b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
.gitignore
.gitignore
+1
-0
tests.py
thegoodplace/froyo/tests.py
+14
-1
No files found.
.gitignore
View file @
f03d4ecf
...
...
@@ -4,3 +4,4 @@ geckodriver.log
**/__pycache__
*.pyc
pyvenv.cfg
db.sqlite3
\ No newline at end of file
thegoodplace/froyo/tests.py
View file @
f03d4ecf
...
...
@@ -8,4 +8,17 @@ class CustomerTest(unittest.TestCase):
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://localhost: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
(
'Finished the test! Test Successful!'
)
if
__name__
==
'__main__'
:
unittest
.
main
(
warnings
=
'ignore'
)
\ 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