Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Midterm-Project-186050-Columbres-v2
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
Alysha Columbres
Midterm-Project-186050-Columbres-v2
Commits
517575c0
Commit
517575c0
authored
Mar 19, 2020
by
Alysha Columbres
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrote the first test
parent
59307f6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
functional_test.py
functional_test.py
+12
-2
No files found.
functional_test.py
View file @
517575c0
...
@@ -11,9 +11,19 @@ class NewVisitorTest(unittest.TestCase):
...
@@ -11,9 +11,19 @@ class NewVisitorTest(unittest.TestCase):
def
tearDown
(
self
):
def
tearDown
(
self
):
self
.
browser
.
quit
()
self
.
browser
.
quit
()
#
initial testing
#
employee opens website and sees the title
def
test_can_open_
browser
(
self
):
def
test_can_open_
website
(
self
):
self
.
browser
.
get
(
'http://localhost:8000'
)
self
.
browser
.
get
(
'http://localhost:8000'
)
self
.
assertIn
(
'The Good Place FroYo Shop'
,
self
.
browser
.
title
)
# employee opens ingredients list page and checks title
def
test_can_open_ingredients_list_page
(
self
):
self
.
browser
.
get
(
'http://localhost:8000/ingredients_list_page'
)
self
.
assertIn
(
'Ingredients - List'
,
self
.
browser
.
title
)
self
.
assertEqual
(
'http://localhost:8000/ingredients_list_page'
,
self
.
browser
.
getCurrentUrl
()
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
unittest
.
main
(
warnings
=
'ignore'
)
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